Issue #1045 has been updated by devink.
Just got a chance to test the new code. Puppet is refreshing test_exec from all four resource definitions as expected, so that fixed the problem. Thanks. -devink ---------------------------------------- Bug #1045: notify not being honored http://projects.reductivelabs.com/issues/show/1045 Author: mmcgrath Status: Closed Priority: High Assigned to: jamtur01 Category: language Target version: 0.24.6 Complexity: Unknown Patch: None Affected version: 0.24.5 Keywords: When using a define then using notify => Service, the service does not restart (it does not even get set to restart) however if putting the notify in the define directly it does work. I'm not sure whats causing this. Below is the working and non-working config as well as a trace. This all used to work, I'm not exactly sure when it stopped. <pre> # DOESNT WORK configfile { '/etc/nagios/': source => 'system/nagios/', owner => nagios, group => nagios, recurse => true, require => Package['nagios.x86_64'], notify => Service['nagios'], } define configfile($owner = root, $group = root, $mode = 644, $source, $backup = main, $recurse = false, $ensure = file) { file { $name: mode => $mode, owner => $owner, group => $group, backup => $backup, recurse => $recurse, ensure => $ensure, source => "puppet:///config/$source" } } #END #DOES WORK nagiosfile { '/etc/nagios/': source => 'system/nagios/', owner => nagios, group => nagios, recurse => true, require => Package['nagios.x86_64'], } define nagiosfile($owner = root, $group = root, $mode = 644, $source, $backup = main, $recurse = false, $ensure = file) { file { $name: mode => $mode, owner => $owner, group => $group, backup => $backup, recurse => $recurse, ensure => $ensure, notify => Service['nagios'], source => "puppet:///config/$source" } } #END #TRACE OF NON WORKING (notice on restart) info: /Host[puppet.fedoraproject.org]: Adding aliases "puppet" info: /Host[puppet.fedoraproject.org]: Adding aliases "puppet1" info: /Host[puppet.fedoraproject.org]: Adding aliases "puppet1.fedora.phx.redhat.com" info: Caching catalog at /var/lib/puppet/localconfig.yaml notice: Starting catalog run notice: //Node[noc1]/noc/nagios-server/Configfile[/etc/nagios/]/File[/etc/nagios/services]/checksum: checksum changed '{time}Mon Feb 04 21:47:16 -0700 2008' to '{time}Mon Feb 04 22:16:18 -0700 2008' 2d1 < notice: //Node[noc1]/noc/nagios-server/Configfile[/etc/nagios/]/File[/etc/nagios/services/websites.cfg]/checksum: checksum changed '{md5}cf1b00727c3126543c2512d6c4217789' to '{md5}3ba83016aa09c12229928f90b10c421e' info: //Node[noc1]/noc/nagios-server/Configfile[/etc/nagios/]/File[/etc/nagios/services/websites.cfg]: Filebucketed to main with sum 3ba83016aa09c12229928f90b10c421e notice: //Node[noc1]/noc/nagios-server/Configfile[/etc/nagios/]/File[/etc/nagios/services/websites.cfg]/source: replacing from source puppet:///config/system/nagios/services/websites.cfg with contents {md5}cf1b00727c3126543c2512d6c4217789 notice: Finished catalog run in 38.78 seconds #END </pre> ---------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
