Added retry to update operation
authorIan Unruh <ianunruh@gmail.com>
Wed, 5 Mar 2014 21:59:21 +0000 (15:59 -0600)
committerIan Unruh <ianunruh@gmail.com>
Wed, 5 Mar 2014 21:59:21 +0000 (15:59 -0600)
manifests/init.pp
manifests/update.pp

index e4e43b178785b05207597cd8ebb8823480265896..d26a8a2d4304af4bc0bf91743b73eff985c9448d 100644 (file)
@@ -32,6 +32,7 @@ class apt(
   $purge_preferences    = false,
   $purge_preferences_d  = false,
   $update_timeout       = undef,
+  $update_tries         = undef,
   $sources              = undef
 ) {
 
index ce0b78fbddbded8805ff4e56aa1a2ad9d24a9f18..725bb3bea63a967932cea8a627e6cad1c973c93a 100644 (file)
@@ -6,5 +6,7 @@ class apt::update {
     logoutput   => 'on_failure',
     refreshonly => true,
     timeout     => $apt::update_timeout,
+    tries       => $apt::update_tries,
+    try_sleep   => 1
   }
 }