alignak icon indicating copy to clipboard operation
alignak copied to clipboard

Default configuration files replaced on application update

Open mohierf opened this issue 7 years ago • 1 comments

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 avatar Aug 14 '18 07:08 mohierf

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

mohierf avatar Sep 05 '18 11:09 mohierf