-
Notifications
You must be signed in to change notification settings - Fork 290
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
CONFIG_FILE environment variable should be configurable #851
Comments
|
I do not see |
|
@ghoneycutt yes, |
|
@cwjohnston @ghoneycutt If you agree I'd add it with eventually all the others listed in #849. |
|
I like this approach though it will require a major version change if we change parameters. |
|
Please see my note in #849 (comment). I am not in favor of managing env vars that overlap with config already managed by JSON. |
|
@ghoneycutt actually we can reserve the existing parameters, eventually with a deprecation notice of the ones we want to get rid of. @cwjohnston as in the note of #849 (comment) we can use this hash based approach for the settings of environment variables which refer to elements not present in the json configs. Actually we can allow the user also to set variables like REDIS_URL if he really wanted them in /etc/default/sensu . SO we can achieve both compatibility with current params and full customisability from users, for any current or future setting. |
|
@ghoneycutt #861 does the job and replaces #852 |
Added config_file params to CONFIG_FILE envvar #851
|
Released in v2.43.0 |
Description of problem
The value of
CONFIG_FILEenvironment variable is not currently configurable via this module.Both Sensu Core and Sensu Enterprise use the value of the
CONFIG_FILEenvironment variable to set the--configflag when starting Sensu processes. This flag specifies a singular JSON config file, the content of which is deep merged with the contents of the directory specified by the--config_dirflag. TheCONFD_DIRenvironment variable used to set the value of--config_dirflag is already configurable via this module.The default
CONFIG_FILEvalue is/etc/sensu/config.json(e.g. https://github.com/sensu/sensu-omnibus/blob/master/files/sensu-gem/bin/sensu-service#L46-L55)The text was updated successfully, but these errors were encountered: