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 still got
executed, and puppet agent returned with code 2 which means there were some
changes but whole transaction was success. Puppet agent did output error
message of exec{ somethingA: } on stderr.

My application relays on return code, how can I make puppet abort when some
exec fail? and return error code like 6?

You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouppuppet-users @
postedJun 4, '13 at 4:06p
activeJun 5, '13 at 1:05p

2 users in discussion

Xin zhang: 1 post Jcbollinger: 1 post



site design / logo © 2022 Grokbase