Issue #1537 has been updated by luke.

Status changed from Needs design decision to Accepted
Assigned to changed from luke to community

I guess I'm ok with this but it involves hacking the ensure property so that it 
checks if 'enable' is out of sync, and if so, runs it first.  Puppet's model 
requires that ensure always runs first, so anything that needs to run before it 
must be done explicitly by the 'ensure' property.

See the hackery in the file type around content and source for an example.
----------------------------------------
Refactor #1537: "ensure" and "enable" running order for a service is 
inappropriate
http://projects.reductivelabs.com/issues/show/1537

Author: ohookins
Status: Accepted
Priority: Normal
Assigned to: community
Category: service
Target version: 


Granted, I only have a single use case for this but it is valid. Say we have 
several service levels of machine, and on the lowest level we don't want to run 
puppet aside from during the build where we set up some defaults.

So we have something like this defined in the manifests:

class puppet::disable {
        # Disable puppet
        service { "puppet":
                ensure => stopped,
                enable => false,
        }
}

Hovever, the "ensure" part is run first, which stops puppet in the middle of 
the run. Since the "enable" part would usually be run afterwards, it is never 
run. Therefore quite possibly puppet will stay chkconfig'ed on.

To fix this we just need the running order reversed. I can't think of any 
reason why this would break things.


----------------------------------------
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://reductivelabs.com/redmine/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