elan-ev / opencast_mariadb

Install MariaDB for Opencast using Ansible

Home Page:https://galaxy.ansible.com/elan/opencast_mariadb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role to Install MariaDB for Opencast

molecule

Install MariaDB for Opencast with ansible.

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 to see all variables.

Example Playbook

Just add the role to your playbook:

- 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. With podman as driver you can install it like this – preferably in a virtual environment (if you use docker, substitute podman with docker):

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:

molecule create
molecule converge
molecule destroy

If you want to inspect a running test instance use molecule login --host <instance_name>, where you replace <instance_name> with the desired value.

To test the role run molecule test.

License

BSD-3-Clause

Author Information

ELAN e.V

About

Install MariaDB for Opencast using Ansible

https://galaxy.ansible.com/elan/opencast_mariadb

License:BSD 3-Clause "New" or "Revised" License