Icinga / ansible-playbooks

Ansible Playbook for Icinga 2
GNU General Public License v2.0
225 stars 122 forks source link

Provide support for other databases #47

Open andreasscherbaum opened 7 years ago

andreasscherbaum commented 7 years ago

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

ctappy commented 7 years ago

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

andreasscherbaum commented 7 years ago

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.

aflatto commented 7 years ago

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

rubdos commented 6 years ago

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...