-
-
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
Implement conditional statements/loops parameter for icinga2::object::* #354
Comments
How the module should know at what position the custom snippet has to be added? |
Not sure yet :( The best solution would probably be something like the concat::fragment order parameter but this is surely really hard to implement. Perhaps we just try it after |
That's not stable. What will be done if you wanna use attribute set by the same object? |
Not sure what you mean, sorry. Can you give an example please? |
Conditional statements require context and order. At the moment the object config is rendered from a Hash, where the order doesn't matter. We could offer a |
In my opinion this should be the only way.
… Am 30.08.2017 um 15:41 schrieb Markus Frosch ***@***.***>:
Conditional statements require context and order.
At the moment the object config is rendered from a Hash, where the order doesn't matter.
We could offer a custom_code string field. But still, the best way should be to handle special cases via a separate config file. (out of scope of icinga2::object)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#354 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEDqLdgaffkP8RoS56cO-SgGHaayM3V6ks5sdWaegaJpZM4O6Tvi>.
|
|
No you can't, lazyfrosch explained it. |
We had this discussion many times over the time. It does not make sense for us to add this kind of complexity to the module. I think even these complex types of configuration are already covered in an acceptable way. I'll close this issue since we had this topic for many times now, thank you for your effort. |
Expected Behavior
puppet-icinga2 allows to add a Service like this:
The important part for us is the
if () {} else {}
partCurrent Behavior
Its currently not possible to add conditional statements/loops by using the icinga2::object::* classes
Possible Solution
Due to the (could be) complex nature of conditional statements/loops I suggest to only add a
custom
parameter to the icinga2::object::* classes which allows to add free text to an object.Steps to Reproduce (for bugs)
Try to add a conditional statements/loops with icinga2::object::* classes.
Your Environment
puppet module list
): Forked master with enhancementspuppet -V
): 4.10.1The text was updated successfully, but these errors were encountered: