Icinga / icingaweb2-module-puppetdb

PuppetDB module for Icinga Web 2 (ImportSource for Icinga Director)
12 stars 6 forks source link

Add template to host, based on a facts in the PuppetDB #13

Closed linuxmail closed 6 years ago

linuxmail commented 6 years ago

hi,

I try to add a template to hosts, via based on a fact. It works, if I use "certname=host.foo", but I need something like:

Import template "nginx-template", if facts.puppet_modules=nginx, like I have it on the screenshot.

bildschirmfoto vom 2017-11-30 11-00-30

Is that possible?

cu denny

Thomas-Gelf commented 6 years ago

It should work, but not with the wildcard. Filtering for facts.puppet_classes=nginx|facts.puppet_classes=nginx_whatever should be fine.

Thomas-Gelf commented 6 years ago

@linuxmail: and eventually have a look at the proposed solution in this Director issue, it could fit your scenario.