Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default Icinga db name #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ls-initiatives
Copy link

The Debian package creates a database named "icinga2" by default, and we don't override those defaults in the role.
It seems to make sense, so we can just as well change the role's default to match the package.
Otherwise, on Debian the role will by default generate 2 databases : "icinga" created by the role and "icinga2" created by the package

The Debian package creates a database named "icinga2" by default, and we don't override those defaults in the role.
It seems to make sense, so we can just as well change the role's default to match the package.
Otherwise, on Debian the role will by default generate 2 databases : "icinga" created by the role and "icinga2" created by the package
@ls-initiatives
Copy link
Author

Hum I notice the docs all point to a database names "icinga" so maybe we should change the debian package instead ?

@aflatto
Copy link
Contributor

aflatto commented Jun 3, 2017

Hello, thank you for your contribution.
Yes, the proper change should be in the Packaging before we do any of the changes in the Ansible playbook.
If you want that subject to be addressed you'll need to open an issue in the https://github.com/Icinga/icinga-packaging project.
I'll put this PR on "Hold" till that issue is addressed and then I'll review it's implication or if it is no longer valid you can close it yourself.

@dnsmichi
Copy link

dnsmichi commented Jun 6, 2017

I would suggest to look into how puppet-icinga2 allows to manage the database setup and implement the same behaviour.

https://github.com/Icinga/puppet-icinga2#setting-up-icinga-ido

@aflatto
Copy link
Contributor

aflatto commented Sep 7, 2017

For people that maintain their Icinga deployment with the ansible playbooks this will break their system as it will migrate the setup to a new DB and not retain the old data, so it is not backward compatible.
It would help of you add a task to test if an old "icinga" db exist and migrate to the "icinga2" - or break and inform the user of the probable consequences.

@andreasscherbaum
Copy link
Contributor

The "migrate" step can be as easy as just rename the database, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants