Issue #5118 has been updated by Nigel Kersten.

Category set to auditing/compliance
Status changed from Unreviewed to Accepted


----------------------------------------
Bug #5118: Package audit => ensure reverts to previous state
https://projects.puppetlabs.com/issues/5118

Author: Cody Herriges
Status: Accepted
Priority: Normal
Assignee: 
Category: auditing/compliance
Target version: 
Affected Puppet version: 2.6.0
Keywords: 
Branch: 


When auditing ensure in package resources the value initially saved it 
state.yaml after the first audit run is used to revert the state in the event 
the state ever drifts.  So if puppet-dashboard is installed and I run a "file { 
"puppet-dashboard": audit => ensure }" then remove puppet-dashboard by hand 
using yum and run the previous resource again it will install puppet-dashboard. 
 This works the other way too.  If my initial state was puppet-dashboard 
uninstalled, upon installing it by hand the audit => ensure will remove the 
package.  This same behavior exists for package version.  Install 
puppet-dashboard using the Puppet Labs yum repo, run a audit on ensure, then 
downgrade dashboard to 1.0.3, and run the audited resource again.  My testing 
shows it reinstalling 1.0.4 for me.


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