[Puppet Users] exec failure doesn't abort whole puppet transaction

2013-06-04 Thread xin zhang
I have my puppet defined as (pseudo code) class A { exec { somethingA: } } class B { exec { somethinB: } } Class['A'] -> Class['B'] the exec{ somethingA: } is actually failed on my setup, I was expecting the whole puppet transaction would fail. To my surprise, class B s

Re: [Puppet Users] exec failure

2010-03-03 Thread Roy Nielsen
Thanks Gary, I tried that - but the ensure => stopped doesn't work for the launchd provider of the service type. see: refacor #2056 under Statler on: http://projects.reductivelabs.com/projects/puppet/roadmap I need some way to stop a launchd process until the refactor happens :) Regards, -R

Re: [Puppet Users] exec failure

2010-03-03 Thread Gary Larizza Jr.
Roy, I don't believe you need to customize an exec for this - you can simply define a service with the JobID of your Launchd plist, and then send the plist to the /Library/LaunchDaemons directory. See the docs site for the launchd type reference --> http://docs.reductivelabs.com/refere

[Puppet Users] exec failure

2010-03-03 Thread Roy Nielsen
Hello, I'm using puppet 0.25.1 - and I'm trying to create a custom resource to use launchctl to stop a launchd job. command => "launchctl stop `launchctl list | grep $job_real | cut -f 3`", yeilds: err: //sav/Stop_launchd_job[com.Symantec.SymSecondaryLaunch]/Exec[com.Symantec.SymSecondaryLa