Issue #5461 has been updated by David Gwilliam.

https://projects.puppetlabs.com/issues/17457 is probably related, although the 
exact issue appears to be slightly different now that I look closer...
----------------------------------------
Bug #5461: puppet audit user only works once
https://projects.puppetlabs.com/issues/5461#change-76743

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.

Reply via email to