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