This is really helpful, thank you. Unfortunately it looks like this behavior requires the `purge` param to be set to true :(
On Wednesday, March 25, 2009 at 6:44:10 PM UTC-6, Gary Law wrote: > > 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 unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fdd27608-ca05-4437-9980-9d0129d60485%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.