notify defined in exported resource won't work?

89 views
Skip to first unread message

mizuki

unread,
Jun 14, 2011, 11:53:59 AM6/14/11
to puppet-users
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


mizuki

unread,
Jun 14, 2011, 12:22:54 PM6/14/11
to puppet-users
Never mind, after I upgraded puppet to the latest version, it's actually fixed.
Thanks for the developers whoever fixed the problem!!

Mizuki

Joehillen

unread,
Jul 7, 2011, 7:24:06 PM7/7/11
to puppet...@googlegroups.com
What version were you running? I think I may have hit a similar issue.
Reply all
Reply to author
Forward
0 new messages