Issue #1570 has been updated by jamtur01. Status changed from Unreviewed to Accepted Target version set to unplanned
---------------------------------------- Bug #1570: Nagios_service doesn't reset an old contact_groups setting http://reductivelabs.com/redmine/issues/show/1570 Author: tstoop Status: Accepted Priority: Normal Assigned to: Category: nagios Target version: unplanned Complexity: Unknown Affected version: 0.24.5 Keywords: 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>[EMAIL PROTECTED]:~/.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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
