ansible-playbooks icon indicating copy to clipboard operation
ansible-playbooks copied to clipboard

Provide support for other databases

Open andreasscherbaum opened this issue 8 years ago • 4 comments

The Ansible Playbook only supports MySQL, can other databases (like PostgreSQL) be supported as well?

andreasscherbaum avatar Apr 28 '17 10:04 andreasscherbaum

I am not a dev on this project but I would look at adding in another role like bas-ansible-roles-collection.postgresql9-server

psql is not a straight forward setup

ctappy avatar May 01 '17 02:05 ctappy

Right now this role is "icinga2-ansible", and judged by the name it should cover all of them. Otherwise this role should be renamed as well.

It's straightforward to move Playbooks for every database into a separate file, and include the files from the main.yml, based on the selected database. It can even default to "MySQL", to make transition easier.

andreasscherbaum avatar May 01 '17 19:05 andreasscherbaum

Yes, we would love to incorporate the Postgresql Support for the Ansible playbook, do you have a Pull request you wish to submit ?

aflatto avatar May 04 '17 08:05 aflatto

I am not a dev on this project but I would look at adding in another role like bas-ansible-roles-collection.postgresql9-server

Why? I would leave the setup of PostgreSQL to be done by the playbook developer. That way, he can pick the role and setup he likes. Maybe the host that'll host Icinga web2 already has PostgreSQL installed (which is my case), and we only need to create a role and database...

rubdos avatar Jul 25 '18 17:07 rubdos