Kai Timmer
2014-Oct-09 11:52 UTC
[Puppet Users] Automatically remove deactivated host from icinga/nagios config
Hello, I'm using this snippet to build my icinga configuration out of my exported facts #Collect the nagios_host resources Nagios_host <<||>> { target => "/etc/icinga/puppet.d/hosts.cfg", require => File["/etc/icinga/puppet.d/hosts.cfg"], notify => Service[icinga], } If I now deactivate a host on my puppetdb with: puppet node deactivate fqdn.of.host I would assume that on the next run my hosts.cfg should be without the deactivated host. But this doesn't work. The host stays in the file. I can only remove it, if I delete the hosts.cfg file and than let puppet run again. Did I miss something or is it not possible to automatically remove the host? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d2c05cf4-3eb1-4619-a97d-e2d16e3822cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.