Issue #3723 has been updated by James Turnbull.

Target version set to 2.6


----------------------------------------
Feature #3723: Retries and sleep options for Exec
http://projects.puppetlabs.com/issues/3723

Author: Nigel Kersten
Status: Ready for Checkin
Priority: Normal
Assigned to: Nigel Kersten
Category: exec
Target version: 2.6
Affected version: 0.25.4
Keywords: 
Branch: 


We still find there are things around we need to use an Exec for, and sometimes 
these have transient failures due to NFS dependencies, etc etc.

It would be quite useful if the Exec type supported the ability to retry these 
sorts of situations, ie

<pre>
exec { "some_transient_failing_command":
  retries => 3,
  sleep   => 15,
}
</pre>

with the idea being that if the exec returned an unacceptable exit code, it 
would retry "retries" times and sleep "sleep" seconds between each retry.

People would need to be careful about ensuring their sleep time didn't exceed 
the exec timeout, but that seems reasonable enough.

I'm happy to do this if it's accepted as an upstream feature.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to