Never mind, after I upgraded puppet to the latest version, it's actually fixed. Thanks for the developers whoever fixed the problem!!
Mizuki On Tue, Jun 14, 2011 at 11:53 AM, mizuki <[email protected]> wrote: > Hi all, > > I noticed a "service notify" defined inside of exported resource won't > work. > > For example, I have the following exported resource defined: > > > define host($ip = $fqdn, $short_alias = $fqdn) { > @@file { > "$nagios_cfgdir/${name}_host.cfg": > ensure => present, content => template( > "nagios/host.erb" ), > > mode => 644, owner => root, group => root, > notify => Service [nagios], > tag => 'nagios' > } > } > > This creates the file fine, but the service won't get restarted. > Notify service outside of exported resource works of course. > So I'm wondering if it's designed by nature or it's just a bug. > > > Anyone had experinces on that? Can someone advice? > > Thanks! > > Mizuki > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
