Issue #5075 has been updated by Nan Liu.
I was able to get similar error executing puppet apply for packages:
package { "openssh"
audit => ensure,
}
$ rm state.yaml
$ puppet apply test.pp
debug: /Stage[main]//Package[openssh]: Storing newly-audited value
4.3p2-41.el5 for ensure
err: /Stage[main]//Package[openssh]/ensure: change from 4.3p2-41.el5 to
failed: Got a nil value for should at /tmp/test.pp:4
----------------------------------------
Bug #5075: audit => content has odd behaviour in agent/master mode
https://projects.puppetlabs.com/issues/5075
Author: Cody Herriges
Status: Needs more information
Priority: Normal
Assignee: Cody Herriges
Category:
Target version:
Affected Puppet version: 2.6.2
Keywords:
Branch:
Auditing content of a file resource always works properly when running the
resource using 'puppet apply' but using the same code in agent/master mode
results in the following error.
err: /Stage[main]/Audit::Passwd/File[/tmp/passwd]: Could not evaluate:
Could not retrieve content for {md5}bd7c8189e4202258c9686c04d2263e2f from
filebucket: File not found at /etc/puppet/modules/audit/manifests/passwd.pp:5
Went digging through the code for some clues. I haven't investigated how to
fix but the error is involved with line 171 and 207 of
lib/puppet/type/file/content.rb, which is the content property code for the
file type. This simple manifest file is what I was using for testing:
<pre>
class audit::passwd {
file { "/tmp/passwd":
audit => content,
}
}
</pre>
--
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.