-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Apply Notification "users" and "user_groups" as variable #208
Comments
this is a workaround for issue voxpupuli#208 voxpupuli#208
this is a workaround for issue voxpupuli#208 voxpupuli#208
Hi, this issue is not fixed in v1.0.2. Values for "users" and "user_groups" must be a string if you want to use them as variables. Therefore both string and array should be possible:
To keep things tidy there should be a check if a user really wants to use a variable if a string is used. So an additional check is necessary, sth. like Or just add to the documentation to use a string for setting a variable, else an array. |
Done. Did the same for states and types attribute. |
What I want to do
from icinga2 docs, 4.2.3.4. notifications.conf - https://docs.icinga.com/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2-first-steps#notifications-conf
That's my config
What I get
Problem is that icinga doesn't identify variables as variables when set in square brackets.
Possible solution
Check if the parameter is a variable in the puppet code. So
any2array
"users" and "user_groups" solely when not a variable.The text was updated successfully, but these errors were encountered: