-
-
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
Example and documentation for syncing hiera data to icinga objects #342
Comments
We do less is more in this module. When you wanna have the same behavior do it on your on at your profile layer. Use the create_resource function for puppet 3 or the iteration in puppet 4. |
What about reusing the objects class that was present in the legacy module? Should it work out of the box if I point it at the object classes of the new module or was it removed for a specific reason and isn't compatible with the current module? |
When using iterations like suggested in this issue I've encountered some strange behavior -
Is being transformed into the following icinga object -
I figured something is wrong with the way we are escaping the string, but eventually I found out the extra quotes are being added by the icinga2::object:: class. |
That’s not strange, it’s the expected behavior.
Use:
["host.name != Yahoo && host.name != icinga2-win1"]
The parser decides what elements to be quoted.
… Am 16.08.2017 um 17:23 schrieb Yaron Idan ***@***.***>:
["host.name != \"Yahoo\" && host.name != \"icinga2-win1\""]
|
have a look at the documentation to Object Config, Parsing Configuration. |
True, I've missed that part of the docs, thanks for the reference. |
Inspired by you I wrote a blog post. It's in german sorry for that but the code say it all, I think. I will write an example and a short documentation. |
I agree with @lbetz, adding an example and docs is sufficient. Thanks for the effort @yaron-idan |
Expected Behavior
We have been using the puppet-icinga2-legacy module for a while now, and are in the process of upgrading to this module. We've been using the
icinga2::objects
class to sync between hiera and our icinga2 server, and it's been working great for us so far. Here's a link to the feature I'm referring to - https://github.com/Icinga/puppet-icinga2-legacy#hieraCurrent Behavior
Currently, it seems this module doesn't contain this module, and we've been wondering why.
Possible Solution
Adding the
icinga2::objects
class into this module, or any other class with similar functionality that will allow hiera data to be synced with icinga2.Context
This breaks our current flow for creating icinga2 objects, which allowed us to empower every dev member in our team to easily monitor his/hers services.
The text was updated successfully, but these errors were encountered: