Graylog2 / fpm-recipes

Graylog package build recipes
http://docs.graylog.org/en/latest/pages/installation/operating_system_packages.html
18 stars 18 forks source link

Move /etc/graylog2.conf to /etc/graylog2/server/server.conf #6

Closed bernd closed 9 years ago

bernd commented 10 years ago

The current packages install the graylog2.conf to /etc/graylog2.conf. This because of historical reasons and because it is documented everywhere.

Let the packages install the config to /etc/graylog2/server/server.conf and create a symlink to that in /etc/graylog2.conf for backwards compat. This needs a carefully crafted post-install script which moves existing configs to the new location and creates the symlink on updates.

joschi commented 10 years ago

This might be problematic if the config file references external files (e. g. elasticsearch_config_file or rules_file) with a relative path. At least we have to consider these cases.

kiranos commented 9 years ago

I think this should get updated to be added in /etc/graylog2/server/server.conf so the context of all packages is the same.

bernd commented 9 years ago

This will not be done for 0.9x versions. The upcoming 1.0 packages have the config files moved.