Hi puppet experts, I'm pretty new to puppet and am having some trouble finding the right way to specify the functionality I need.
Specifically, lets say I have a command to create some key/value pair: myCommand -create "key" "value" And I have a second command to list key/value pairs: myCommand -list "key" I only want to run the -create if the -list returns a some non-zero value, indicating that no matching entries were found. I imagine I would want something like this: exec { myCommand-create: command => "myCommand -create key value", path => ["/bin"] require => [ something that runs -list and checks return code. ] } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.