Ansible Role for configuring stand-alone MariaDB instances on Centos 7
This role is in development and needs to be tested before pushing to ansible-galaxy. Pull requests are welcome!
Once finished this role will complete the following tasks:
-
Verify MariaDB installation.
-
Create a new MariaDB datadir in the location specified either in defaults or a custom playbook.
-
Calculate the number of current standalone databases to ensure position of deployment.
-
Add a new configuration to /etc/my.cnf.d under name of application specified either in defaults or custom playbook. A new port number will be allocated automatically.
-
Create a systemd service under /etc/systemd/system/mariadb-app_name.service to be controlled by systemctl.
-
Start the database service with custom log, socket and pid locations.