Ben
2007-Oct-05 03:01 UTC
file type to monitor files recursively and ignore dir timestamps
I have a manifest that looks for changes in files recursively and restarts a service should it find any changes. Problem is that i ''ignore'' some files that i do not wish to monitor and ones that change occasionally and when they change it modifies the timestamp on the directory which in turn triggers puppet to restart the service. So is there a way to monitor only file checksums recursively and ignore timestamp changes to directories? Maybe a complementary parameter to the ''ignore'' parameter of the ''file'' type, like ''include'' or ''only'', that accepts wildcards like ''ignore''? Here is an example of the offending manifest: [ "/etc/dansguardian/lists/blacklists", "/etc/dansguardian/lists/phraselists" ]: recurse => true, ignore => "*.processed", checksum => md5, notify => Service["dansguardian"]; Ben.