Issue #8418 has been updated by Matt Robinson.
Status changed from Needs Decision to In Topic Branch Pending Merge
Assignee set to Matt Robinson
Branch set to https://github.com/mmrobins
So this turns out not to have anything to do with auditing parameters. The
problem turns out to be related to environment and run mode. If you were using
environments to set your modulepath, the fact that run_mode got set incorrectly
for the inspect application caused the environment not to be respected and the
source files from the puppet file server not to be found and audited.
puppet.conf on the master
[master]
modulepath = $confdir/environments/$environment/modules
pupet.conf on the agent
[agent]
environment = dev
I've got a branch I'm attaching that anyone can test out to see if it solves
their problem. I'm going to try to write some acceptance tests for this before
I merge the branch since this weird behavior with run_mode is hard to test in
specs since it relies on so much global state.
----------------------------------------
Bug #8418: What should puppet auditing do when asked to audit parameters?
https://projects.puppetlabs.com/issues/8418
Author: Nigel Kersten
Status: In Topic Branch Pending Merge
Priority: Normal
Assignee: Matt Robinson
Category:
Target version: 2.6.x
Affected Puppet version:
Keywords:
Branch: https://github.com/mmrobins
<pre>
file { "/etc/ssh/ssh_config":
ensure => file,
source => "puppet:///modules/base/ssh_config",
audit => all,
}
root@debian5-1:~# puppet inspect
err: /Stage[main]/Base/File[/etc/ssh/ssh_config]: Could not inspect
File[/etc/ssh/ssh_config]; skipping: Could not retrieve information from
source(s) puppet:///modules/base/ssh_config at
/etc/puppet/env/dev/modules/base/manifests/init.pp:35
</pre>
We shouldn't be auditing parameters, only properties.
--
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.