You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a dynamic environment that requires us to set certain configuration values based on runtime data from the host. This prevents us from correctly setting subscriptions
Your Environment
Sensu version used (sensuctl, sensu-backend, and/or sensu-agent):
sensu-{agent,ctl,backend} 5.13
Installation method (packages, binaries, docker etc.):
sensu signed RPM packages.
Operating System and version (e.g. Ubuntu 14.04):
CentOS 7.6.1810
The text was updated successfully, but these errors were encountered:
@johannagnarsson This is due to the way Viper, the library we rely on to parse configs, deals with values from environment variables and flags in an inconsistent manner.
I'm not totally sure how we could implement a workaround on our side but in the meantime, you can always do the following instead:
I'm going to close this, as this appears to be inherent in the way our CLI framework works, and not something we can directly address without forking or replacing it.
Expected Behavior
when setting environment variable SENSU_SUBSCRIPTIONS I would expect it to behave the same way as the
--subscriptions
parameter.Current Behavior
When setting the SENSU_SUBSCRIPTIONS environment variable to:
linux,foo,bar
it results in subscriptions on the client side that look like this:when starting the agent via
sensu-agent start --subscriptions linux,foo,bar
it results in subscriptions that look like this:Possible Solution
Ideally the SENSU_SUBSCRIPTIONS environment variable would be parsed in the same way as the
--subscriptions
command line argument.Steps to Reproduce (for bugs)
sensuctl entity info <hostname>
Context
We have a dynamic environment that requires us to set certain configuration values based on runtime data from the host. This prevents us from correctly setting subscriptions
Your Environment
sensu-{agent,ctl,backend} 5.13
sensu signed RPM packages.
CentOS 7.6.1810
The text was updated successfully, but these errors were encountered: