Issue #10388 has been updated by Trevor Vaughan.

Changing audit to 'all' does record the audit values for the sub-files but does 
not fire the exec when a sub-file is changed. Nor does puppet appear to record 
the changed checksum of the subfile once the content is changed.
----------------------------------------
Bug #10388: Recursive File audit does not appear to work.
https://projects.puppetlabs.com/issues/10388

Author: Trevor Vaughan
Status: Unreviewed
Priority: High
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.7.6
Keywords: 
Branch: 


With the following code:

<pre>
file { '/root/test':
  audit => 'checksum',
  owner => 'root',
  group => 'root',
  mode => '644',
  recurse => 'true',
  checksum => 'md5',
  notify => Exec['foo']
}

exec { 'foo':
  command => '/bin/echo "bar"',
  refreshonly => 'true',
  logoutput => 'true'
}
</pre>

Adding a file under /root/test causes the following error with 'puppet apply'

<pre>
otice: /File[/root/test/blah]/mode: mode changed '600' to '644'
err: /File[/root/test/blah]: Could not evaluate: undefined method `notice' for 
nil:NilClass
notice: /Stage[main]//Exec[foo]: Dependency File[/root/test/blah] has failures: 
true
warning: /Stage[main]//Exec[foo]: Skipping because of failed dependencies
</pre>

Changing a file under /root/test has absolutely no effect and does not fire off 
Exec[foo] (which it should).


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to