suzieq icon indicating copy to clipboard operation
suzieq copied to clipboard

Use /etc/suzieq/ as the default location for configuration files

Open anubisg1 opened this issue 3 years ago • 1 comments

Today suzieq expects configuration files to be located either in the same folder where suzieq is executed or into ~/.suzieq

To match common unix software best practices, such configuration files should be located into /etc/suzieq/ for global use and into ~/. suzieq for user specific overrides.

anubisg1 avatar Mar 28 '22 19:03 anubisg1

Very true.

For consideration, many of the Suzieq users have probably used Ansible and Nornir and so may be used to these options:

https://docs.ansible.com/ansible/latest/reference_appendices/config.html#ansible-configuration-settings

The configuration file Changes can be made and used in a configuration file which will be searched for in the following order:

  • ANSIBLE_CONFIG (environment variable if set)
  • ansible.cfg (in the current directory)
  • ~/.ansible.cfg (in the home directory)
  • /etc/ansible/ansible.cfg

For Network Engineers not familiar with unix (and you would be surprised how many are not) having the configuration file in the current directory is very handy and very easy to explain. Its the only option that makes sense if you don't have a unix background.

cldeluna avatar Mar 28 '22 20:03 cldeluna