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
413 stars 203 forks source link

Sync Rule - Import Host Template #1534

Open phil-or opened 6 years ago

phil-or commented 6 years ago

Current Behavior

We are importing our hosts from a csv-file. Then we use sync rules and filter expressions to assign host templates. For example: all hosts with var "Betriebssystem" "Linux" -> template_host_server_linux linux all hosts with var "Betriebssystem" "Windows" -> template_host_server_windows windows all other hosts should get "template_host_others" others

so far so good, but if I want to assign more hosts to different templates, I have to change the filter for "template_host_others" each time and it gets very unclearly

Expected Behavior

Is there a better solution to implement this? maybe a filter expression, that assigns the "template_host_others" to all hosts, which have not yet assigned a template!?

Your Environment

stevie-sy commented 6 years ago

+1

Thomas-Gelf commented 5 years ago

Note for myself: doesn't work, they are merged. Needs a flag like "fallback-template, only in case there is no other import"...

tbauriedel commented 2 years ago

ref/NC/761567