mizuki
2011-Jun-14 15:53 UTC
[Puppet Users] notify defined in exported resource won''t work?
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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
mizuki
2011-Jun-14 16:22 UTC
[Puppet Users] Re: notify defined in exported resource won''t work?
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 <mizuki0621@gmail.com> 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Joehillen
2011-Jul-07 23:24 UTC
[Puppet Users] Re: notify defined in exported resource won''t work?
What version were you running? I think I may have hit a similar issue. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/23JPcoSOHbcJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.