Issue #3422 has been updated by Markus Roberts.

Status changed from Unreviewed to Duplicate

There are already ways to handle this in code (albeit not particularly 
elegantly) and a more general system of state and state-transition aware 
requires is in the works.  Handling this case with special logic/syntax would 
just produce something we'd wind up deprecating as soon as it was done.

----------------------------------------
Feature #3422: "unless_running" for the package type
http://projects.puppetlabs.com/issues/3422

Author: Roy Nielsen
Status: Duplicate
Priority: Normal
Assigned to: 
Category: package
Target version: 
Affected version: 0.25.4
Keywords: 
Branch: 


Hello,

It would be nice to be able to have an "unless_running" feature for the package 
type -- this would do something like:

unless_running => "<process name>"

example:

unless_running => "firefox-bin"

would check to see if "firefox-bin" is in the process list (via ps -ax or -ef 
or your favorite flags that work cross-systems)

and if the process is found, _Do Not_ install the package.

Regards,
-Roy



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