This doesn't seem to work for me in THIS specific case:

-editing the file directly under /var/named

Adding a new file works fine, but editing an existing one doesn't trigger 
the exec.  I think the directory mtime doesn't change, and Puppet doesn't 
know that a change has happened.  Thoughts?

On Wednesday, March 25, 2009 7:44:10 PM UTC-5, 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to