Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
412 stars 203 forks source link

Inheritance of arrays in templates #2729

Open stevie-sy opened 1 year ago

stevie-sy commented 1 year ago

We are using arrays to define lists which are used in checks. e.g. check_disk for the param "-I", "--ignore-eregi-path". So we define in the template a base list of folder/mountpoints, which the check command shouldn't check for all servers. image

But sometimes a server need some special folders to except. So we define this at the host/service object. And here it gets tricky and confusing. Because the director overwrites the values of the array from the template with the values from the host/service object, This is usually correct as far as it goes. BUT, if you enter new values, it looks like that the values from the templates gets inherited, what you can see here: image. Anyway if you don't enter own values in the arrays in the host/service object, it looks like this image And because of the way of overwriting array values in the templates with array values from the host/service object, you have also to re-enter them in the host/service object, if they are also needed, which usally are.

So for us there are three options: -> Merge the array values from the template and the specific values in the host/service object -> Offer an option to "import" the values from the template into the host/service object. -> don't show in the import field of an array the values from the template, so nobody gets confuesd

Your Environment

carraroj commented 1 year ago

ref/NC/780715