https://github.com/elan-ev/opencast_mariadb
Install MariaDB for Opencast using Ansible
https://github.com/elan-ev/opencast_mariadb
ansible ansible-galaxy ansible-role opencast
Last synced: 3 months ago
JSON representation
Install MariaDB for Opencast using Ansible
- Host: GitHub
- URL: https://github.com/elan-ev/opencast_mariadb
- Owner: elan-ev
- License: bsd-3-clause
- Created: 2022-01-19T16:30:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T17:44:47.000Z (10 months ago)
- Last Synced: 2025-03-25T03:31:50.858Z (3 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, opencast
- Language: Jinja
- Homepage: https://galaxy.ansible.com/elan/opencast_mariadb
- Size: 26.4 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role to Install MariaDB for Opencast

Install MariaDB for [Opencast](https://opencast.org/) with [ansible](https://docs.ansible.com/).
## Dependencies
This role requires the MySQL community collection:
```
ansible-galaxy collection install community.mysql
```## Role Variables
You have to specify passwords for the opencast user that accesses the database (`database_password`)
and the database root user (`database_root_password`).
Note that once you set the password for the root user, you can _not_ change it again with this role.Further config options are optional.
Have a look at the [defaults](defaults/main.yml) to see all variables.## Example Playbook
Just add the role to your playbook:
```yaml
- hosts: all
become: true
roles:
- role: elan.opencast_mariadb
database_password: '1234'
database_root_password: '4567'
```## Development
For development and testing you can use [molecule](https://molecule.readthedocs.io/en/latest/).
With podman as driver you can install it like this – preferably in a virtual environment (if you use docker, substitute `podman` with `docker`):```bash
pip install -r .dev_requirements.txt
```Then you can *create* the test instances, apply the ansible config (*converge*) and *destroy* the test instances with these commands:
```bash
molecule create
molecule converge
molecule destroy
```If you want to inspect a running test instance use `molecule login --host `, where you replace `` with the desired value.
To test the role run `molecule test`.
## License
[BSD-3-Clause](LICENSE)
## Author Information
[ELAN e.V](https://elan-ev.de/)