----- Original Message ----- > From: "Craig Dunn" <cr...@craigdunn.org> > To: "puppet-users" <puppet-users@googlegroups.com> > Sent: Friday, July 3, 2015 2:47:53 PM > Subject: Re: [Puppet Users] Ordering without dependencies
> On Fri, Jul 3, 2015 at 3:10 PM, R.I.Pienaar <r...@devco.net> wrote: >> hello, >> >> I am looking for a way to influence run order without also doing >> dependencies. >> >> I have a case where I am removing a bit of software from my system and so as >> is >> typical things need to be done in a different order from creation, crucially >> I >> also do not really care if removal fails. It should just try to remove >> everything >> independent of each other - but at least in a given order so there's some >> chance >> of it working. > > > Theres also a parameter to exec called 'returns' that takes an array, > so if you know what return codes are possible you can do... > > exec { '/bin/false': > returns => [ '0', '1' ], > before => Exec['other'], > } > > and it will never fail the resource, I think thats cleaner than my > other example. yeah those will work for exec, unfort these include non exec stuff :( -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1622170803.106596.1435932638047.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/d/optout.