Issue #1570 has been updated by Denny Daugherty.
This may or may not be a bug, but I was experiencing the same issue until I realized that it would correct itself after a puppetrun on the affected host. ---------------------------------------- Bug #1570: Nagios_service doesn't reset an old contact_groups setting https://projects.puppetlabs.com/issues/1570 Author: Tim Stoop Status: Accepted Priority: Normal Assignee: Category: nagios Target version: unplanned Affected Puppet version: 0.24.5 Keywords: Branch: I use the following class to test this with: <pre>class nagios-bug-0 { nagios_service { "testing this bug": target => "/tmp/changing-stuff-bug", host_name => "random-machine1.example.com", service_description => "do random stuff", contact_groups => "donkey", check_command => "check-ok", } }</pre> Import it, assign it to a host, run puppet. You'll get: <pre>tim@debian:~/.puppet/manifests$ cat /tmp/changing-stuff-bug # HEADER: This file was autogenerated at Thu Sep 11 15:20:42 +0200 2008 # HEADER: by puppet. While it can still be managed manually, it # HEADER: is definitely not recommended. define service { contact_groups donkey host_name random-machine1.example.com check_command check-ok service_description do random stuff }</pre> Now change the class like this: <pre>class nagios-bug-0 { nagios_service { "testing this bug": target => "/tmp/changing-stuff-bug", host_name => "random-machine1.example.com", service_description => "do random stuff", #contact_groups => "donkey", check_command => "check-ok", } }</pre> Run puppet again, the file is still the same. The contact_groups is not removed from the definition, even though I expected it to be removed. I haven't tried if the same is true for other settings, but I suspect it is. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
