Issue #651 has been updated by Roy Nielsen.

So far I have made a basic change to add an :unless metaparameter -- it doesn't 
have all the checks that exec has, but it semi-functions.  The problem is that 
it currently exits the puppet run with an error if the condition is met.

I'm having trouble figuring out how to use the transaction class to "skip" a 
resource if the condition is met rather than exit the run entirely.

Code: http://github.com/amrset/puppet/blob/master/lib/puppet/type.rb

Regards,
-Roy

----------------------------------------
Feature #651: Exec checks should be turned into metaparameters
http://projects.reductivelabs.com/issues/651

Author: Digant Kasundra
Status: Accepted
Priority: Normal
Assigned to: 
Category: RAL
Target version: Rowlf
Patch: None
Affected version: 0.24.4
Keywords: 
Branch: 


The 'checks' in Exec -- onlyif and unless -- should be changed into 
metaparameters, so they're available for all resource types.

My guess is that this will require defining a new type of metaparameter, in the 
same way that the Exec checks are a slightly different type of parameter.


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