Issue #8418 has been updated by Daniel Pittman.

Nigel Kersten wrote:
> Daniel, doesn't auditing 'content' achieve the same thing as (3) regardless 
> of whether you're managing the file with source or content?
> 
> (edit) I see your point now.

I assume your thinking ran "audit content, should be fine", then "wait, if you 
set source, content is empty", or something like that?

I wouldn't rule out that it *does* work, and I am misunderestimating the 
problem here.

> Auditing in general doesn't take any of your management settings into effect. 
> It's simply reading state off the agent.

Yeah.  So, we have an increasingly long string of use cases where that isn't 
really desirable: we actually want to verify (eg: equivalent of noop) audit, 
because we have people pressing to effectively use this to provide a human 
approval between "is it in sync?" and "make it be in sync".  Possibly without 
ever hitting the last phase.
----------------------------------------
Bug #8418: What should puppet auditing do when asked to audit parameters?
https://projects.puppetlabs.com/issues/8418

Author: Nigel Kersten
Status: Needs Decision
Priority: Normal
Assignee: 
Category: 
Target version: 2.6.x
Affected Puppet version: 
Keywords: 
Branch: 


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

Reply via email to