Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enix/ansible-mariadb
Ansible role to deploy MariaDB database
https://github.com/enix/ansible-mariadb
ansible ansible-role database mariadb mariadb-server
Last synced: 18 days ago
JSON representation
Ansible role to deploy MariaDB database
- Host: GitHub
- URL: https://github.com/enix/ansible-mariadb
- Owner: enix
- Archived: true
- Created: 2017-11-07T15:01:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T16:06:38.000Z (over 7 years ago)
- Last Synced: 2024-09-28T11:05:08.883Z (4 months ago)
- Topics: ansible, ansible-role, database, mariadb, mariadb-server
- Language: Ruby
- Size: 15.6 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
eNiXHosting.mariadb
=================A role for deploying and configuring [mariadb](http://mariadb.org) on unix hosts using [Ansible](http://www.ansible.com/).
Requirements
------------Supported targets:
- Ubuntu 16.04 "Xenial"
- Debian 8 "Jessie"
- Debian 9 "Stretch"Role Variables
--------------This roles comes preloaded with almost every available default. You can override each one in your hosts/group vars, in your inventory, or in your play. See the annotated defaults in `defaults/main.yml` for help in configuration. All provided variables start with `mariadb__`.
- `mariadb__extra_packages` - List of extra packages to install (like plugins, ...), `default: []`.
- `mariadb__root_password` - Set the root user password, `default: undefined`.
- `mariadb__default_characterset` - Change the character set of the server installation. By default this is utf8mb4 upon package installation. `default: undefined`.Dependencies
------------- None
Usage
-----Clone this repo into your roles directory:
$ git clone https://gitlab.enix.org/ansible/ansible-mariadb.git roles/mariadb
Or use Ansible galaxy requirements.yml
- src: eNiXHosting.$ROLE
And add it to your play's roles:
- hosts: servers
roles:
- role: eNiXHosting.mariadb:
mariadb__root_password='secret'You can also use the role as a playbook. Asked which hosts to provision, and you can further configure the play by using `--extra-vars`.
$ ansible-playbook -i inventory --extra-vars='{...}' main.yml
Still to do
------------ Add support for upstream or default distribution versions
- Add support for automysqlbackup
- Add support for basic network options (listen, port)
- Add support for extra configuration options (ex eNiXHosting.logstash, option list block)Changelog
---------### 1.1
Fix character set for Debian Jessie
Force update_cache for package installation### 1.0
Initial version.
License
-------GPLv2
Author Information
------------------Laurent CORBES - http://www.enix.fr