I have the following test code in a manifest:
> file {
> '/tmp/testdir':
> ensure => directory,
> owner => root,
> group => root,
> mode => 0755,
> checksum => mtime;
> }
>
> exec {
> 'testdir_updated':
> command => 'touch /tmp/testdir_updated',
> subscribe => File['/tmp/testdir'],
> refreshonly => true;
> }
This doesn't appear to work; i.e. if I touch /tmp/testdir or add a file
to it (which changes the mtime of the directory), the exec doesn't get
run. It runs with every puppetd invocation if I remove 'refreshonly =>
true'.
I'm using puppet v.2.6.1 on Ubuntu Lucid. I could swear this used to
work, and I thought this is/was a common technique. Am I missing
something, or is this a bug?
--
Dan Urist
[email protected]
303-497-2459
--
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.