Hi everyone, Is that normal that when I have some puppet actions made but with no error the return status is not "0": [root@XXXXXXXX]:/var/spool/mail # puppet agent -t --verbose info: Retrieving plugin info: Loading facts in root_home info: Loading facts in meminbytes info: Loading facts in facter_dot_d info: Loading facts in root_home info: Loading facts in meminbytes info: Loading facts in facter_dot_d info: Caching catalog for XXXXXXXXXXXXXXXXXXx info: Applying configuration version ''1330512050'' notice: /Stage[main]/Common::Mail/Service[sendmail]/ensure: ensure changed ''stopped'' to ''running'' notice: Finished catalog run in 7.96 seconds [root@lnk4c-cks01]:/var/spool/mail # echo $? 2 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I believe running puppet agent with -t or --test will turn on --detailed-exitcode which provides extended non-zero exit codes (2 for resource changes, 4 for transaction failures) http://projects.puppetlabs.com/issues/4968 On Wed, Feb 29, 2012 at 2:46 AM, Antidot SAS <antidotsas@gmail.com> wrote:> Hi everyone, > > > Is that normal that when I have some puppet actions made but with no error > the return status is not "0": > > [root@XXXXXXXX]:/var/spool/mail # puppet agent -t --verbose > info: Retrieving plugin > info: Loading facts in root_home > info: Loading facts in meminbytes > info: Loading facts in facter_dot_d > info: Loading facts in root_home > info: Loading facts in meminbytes > info: Loading facts in facter_dot_d > info: Caching catalog for XXXXXXXXXXXXXXXXXXx > info: Applying configuration version ''1330512050'' > notice: /Stage[main]/Common::Mail/Service[sendmail]/ensure: ensure changed > ''stopped'' to ''running'' > notice: Finished catalog run in 7.96 seconds > [root@lnk4c-cks01]:/var/spool/mail # echo $? > 2 > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- Gary Larizza Professional Services Engineer Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thx for info Le 29 févr. 2012 17:41, "Gary Larizza" <gary@puppetlabs.com> a écrit :> I believe running puppet agent with -t or --test will turn on > --detailed-exitcode which provides extended non-zero exit codes (2 for > resource changes, 4 for transaction failures) > http://projects.puppetlabs.com/issues/4968 > > > > On Wed, Feb 29, 2012 at 2:46 AM, Antidot SAS <antidotsas@gmail.com> wrote: > >> Hi everyone, >> >> >> Is that normal that when I have some puppet actions made but with no >> error the return status is not "0": >> >> [root@XXXXXXXX]:/var/spool/mail # puppet agent -t --verbose >> info: Retrieving plugin >> info: Loading facts in root_home >> info: Loading facts in meminbytes >> info: Loading facts in facter_dot_d >> info: Loading facts in root_home >> info: Loading facts in meminbytes >> info: Loading facts in facter_dot_d >> info: Caching catalog for XXXXXXXXXXXXXXXXXXx >> info: Applying configuration version ''1330512050'' >> notice: /Stage[main]/Common::Mail/Service[sendmail]/ensure: ensure >> changed ''stopped'' to ''running'' >> notice: Finished catalog run in 7.96 seconds >> [root@lnk4c-cks01]:/var/spool/mail # echo $? >> 2 >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > > > > -- > > Gary Larizza > Professional Services Engineer > Puppet Labs > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.