-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add custom config #30
Comments
@lbetz Is that supposed to support the case from the documentary? |
Hi, no this feature is just to add custom configuration files, which are not managed or generated over the icinga2_objects variable. So when you have a really complicated checkcommand with lots of syntax then it's easier to work around the parser an provide a whole file at the given location. |
The task will check if in a file in a files/ directory on the management node matches on the given name and deploys or copies it to the destination.
|
@flybyray to answer your question to add config to your own directory. Just add your new directory in the variable: In addition if you want to manage the config over the collection then add the directory to the managed directories variable.
Hope that answers your question ;) |
@mkayontour thanks for explanation. Is there any other feature request which will support a custom „local object tree“? I think this is relevant, because package updates should be possible independent from an ansible icinga2 configuration run. |
The RPM packages should never overwrite those given config files. Otherwise we would have massive problems on big "server" installations which would be erased after an update. If there's currently a problem with the packages which I'm not aware of, I guess this should be a problem for the Icinga 2 packages. But I have many users which are running thousands of hosts on RHEL and manage them by Ansible and mostly Ansible is only deployed once on these machines. The goal of the collection is the configuration of Icinga2 and its features, therefore we only provide the functionality of Icinga 2. Everything besides Icinga should be managed by yourself, systemd unit files won't be part of it. |
Right: For normal operations with rpm packages there is no problem. It is only for some edge cases like disfunction of reinstall - but remove+install works.
I would like to manage - as you said - the systemd myself with an override to use a dedicated In my case there are additional considerations. Some checks for example check_http which have patches not merged upstreams. So custom RPMs are installed in |
as simple files to add to existing managed files like feature or monitoring config, see assemble.
The text was updated successfully, but these errors were encountered: