Issue #5461 has been updated by Ashley Penney.
This appears to be resolved in 3.x:
root@arya:~/tests/puppet# puppet apply user.pp --noop
Warning: No valid modulepath found, skipping pluginsync
/Stage[main]//User[puppet]/ensure: audit change: newly-recorded value
present
/Stage[main]//User[puppet]/home: audit change: newly-recorded value
/home/puppet
/Stage[main]//User[puppet]/uid: audit change: newly-recorded value 1001
/Stage[main]//User[puppet]/gid: audit change: newly-recorded value 1002
/Stage[main]//User[puppet]/comment: audit change: newly-recorded value ,,,
/Stage[main]//User[puppet]/shell: audit change: newly-recorded value /bin/sh
/Stage[main]//User[puppet]/groups: audit change: newly-recorded value
/Stage[main]//User[puppet]/expiry: audit change: newly-recorded value absent
Finished catalog run in 0.06 seconds
root@arya:~/tests/puppet# puppet apply user.pp --noop
Warning: No valid modulepath found, skipping pluginsync
Finished catalog run in 0.06 seconds
root@arya:~/tests/puppet#
----------------------------------------
Bug #5461: puppet audit user only works once
https://projects.puppetlabs.com/issues/5461#change-67707
Author: Nan Liu
Status: Accepted
Priority: High
Assignee:
Category:
Target version:
Affected Puppet version: 2.6.3
Keywords: ae8890f89d318e0c2716bb0d9ba4e90e, audit
Branch:
puppet audit user works, but only once:
user {
"puppet":
ensure => present,
audit => "all",
;
}
puppet apply user.pp --noop -v
info: Applying configuration version '1291685879'
info: Creating state file /var/lib/puppet/state/state.yaml
puppet apply user.pp --noop -v
info: Applying configuration version '1291685939'
err: /Stage[main]//User[puppet]: Could not evaluate: Parameter expiry
failed: Expiry dates must be YYYY-MM-DD at user.pp:8
Once the first audit occurs, the state.yaml file is tainted with an invalid
entry for expiry:
"User[puppet]":
!ruby/sym shell: /bin/bash
!ruby/sym checked: 2010-12-06 17:39:00.324793 -08:00
...
!ruby/sym expiry: !ruby/sym absent
--
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.