Issue #8873 has been reported by Dan Hogland.

----------------------------------------
Bug #8873: audit: recurse => true not working
https://projects.puppetlabs.com/issues/8873

Author: Dan Hogland
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 2.7.x
Affected Puppet version: 2.7.2rc3
Keywords: 
Branch: 


class audit {
  File {
    audit => ['ensure', 'content', 'owner', 'group', 'mode'],
  }
  file { '/tmp':
    recurse => true,
  }
}

The above fails to recurse the /tmp temp directory during a `puppet inspect` of 
all resources and only pulls information for the directory resource /tmp. A 
`puppet agent -t` run though will spit out all the proper data:

[root@puppet-dashboard puppet]# puppet agent -t
info: Retrieving plugin
info: Caching catalog for puppet-dashboard.localdomain
info: Applying configuration version '1313354977'
notice: /Stage[main]/Users/File[/tmp]/ensure: audit change: newly-recorded 
value directory
notice: /Stage[main]/Users/File[/tmp]/content: audit change: newly-recorded 
value 
notice: /Stage[main]/Users/File[/tmp]/owner: audit change: newly-recorded value 0
notice: /Stage[main]/Users/File[/tmp]/group: audit change: newly-recorded value 0
notice: /Stage[main]/Users/File[/tmp]/mode: audit change: newly-recorded value 
1777
notice: /File[/tmp/bar]/ensure: audit change: newly-recorded value file
notice: /File[/tmp/bar]/content: audit change: previously recorded value 
{md5}4477cbf0b12884fd4316003520ffeef5 has been changed to 
{md5}dae051ae4bd6e17ce3d1fb09dd7d9cdb
notice: /File[/tmp/.ICE-unix]/ensure: audit change: newly-recorded value 
directory
notice: /File[/tmp/.ICE-unix]/content: audit change: newly-recorded value 
notice: /File[/tmp/.ICE-unix]/owner: audit change: newly-recorded value 0
notice: /File[/tmp/.ICE-unix]/group: audit change: newly-recorded value 0
notice: /File[/tmp/.ICE-unix]/mode: audit change: newly-recorded value 1777
notice: /File[/tmp/foo]/ensure: audit change: newly-recorded value file
notice: /File[/tmp/foo]/content: audit change: previously recorded value 
{md5}89f472f81671d340057c4b983ba8016c has been changed to 
{md5}e5950b65761f91751a620b4e7c6f1ed3
notice: /File[/tmp/foo]/owner: audit change: previously recorded value root has 
been changed to puppet
notice: /File[/tmp/foo]/group: audit change: previously recorded value root has 
been changed to puppet
notice: /File[/tmp/foo2]/ensure: audit change: newly-recorded value file
notice: /File[/tmp/foo2]/content: audit change: newly-recorded value 
{md5}d41d8cd98f00b204e9800998ecf8427e
notice: /File[/tmp/foo2]/owner: audit change: newly-recorded value 0
notice: /File[/tmp/foo2]/group: audit change: newly-recorded value 0
notice: /File[/tmp/foo2]/mode: audit change: newly-recorded value 644
notice: /File[/tmp/puppet.conf]/ensure: audit change: newly-recorded value file
notice: /File[/tmp/puppet.conf]/content: audit change: newly-recorded value 
{md5}a1167455bee38a4e30736a543f33a170
notice: /File[/tmp/puppet.conf]/owner: audit change: newly-recorded value 0
notice: /File[/tmp/puppet.conf]/group: audit change: newly-recorded value 0
notice: /File[/tmp/puppet.conf]/mode: audit change: newly-recorded value 644
notice: Finished catalog run in 0.08 seconds
[root@puppet-dashboard puppet]# puppet inspect
warning: Is a directory - /tmp
notice: Finished inspection in 0.28 seconds

See screen capture for result from inspect run


-- 
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