The following, which is very similar to what you posted, works for me in so
far as it triggers the Exec if a subdirectory of /var/named is created, if a
new file is created in the subdir, or if an existing file is modified in the
subdir:
class rectest {
exec { "/etc/init.d/named reload":
command => "/etc/init.d/named reload",
refreshonly => true,
}
file { "/var/named":
notify => Exec["/etc/init.d/named reload"],
ensure => directory,
owner => glaw,
group => glaw,
mode => 0644,
source => "puppet://sv01.garylaw.net/rectest/var/named",
recurse => true,
force => true,
ignore => ".svn",
purge => true,
}
}
--
Gary Law
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---