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

Default configuration files replaced on application update #1034

Open
mohierf opened this issue Aug 14, 2018 · 1 comment
Open

Default configuration files replaced on application update #1034

mohierf opened this issue Aug 14, 2018 · 1 comment

Comments

@mohierf
Copy link
Contributor

mohierf commented Aug 14, 2018

When Alignak application is updated, the default shipped configuration files (/usr/local/share/alignak) are replaced with the new ones.

For the admin specific configuration, it is recommended to add some ini files in the alignak.d sub-directory because these files will not be replaced...

Despite, it is very often needed to update the default daemons.ini file that is shipped with Alignak ... and this file will be replaced!

Perharps, it may be good to not deliver this file but a * daemons.ini.sample* file that may be copied and then updated by the administrator... to be discussed

Note that Alignak should start without this file with its default configuration. To be tested and confirmed.

@mohierf
Copy link
Contributor Author

mohierf commented Sep 5, 2018

The recommended configuration way:

  • do not update the default shipped files (alignak.ini, alignak.d/daemons.ini, alignak.d/modules.ini)
  • add some extra files in the alignak.d directory
  1. Adding a daemon or module is adding a section in the new file. No problem
  2. Overriding an existing parameter. Declare the parameter and the section in the new file

As an example, a alignak.d/extra-conf.ini:

[DEFAULT]
; Override the default value
alignak_launched=1

statsd_host = 192.168.43.193
statsd_port = 2004
statsd_prefix = alignak-test
graphite_enabled = 1

[alignak-configuration]
retain_state_information=true
retention_update_interval=5

cfg=alignak.cfg

[daemon.broker-master]
; Change the default daemon port
port=17772

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

No branches or pull requests

1 participant