From: Ian Unruh Date: Wed, 5 Mar 2014 21:59:21 +0000 (-0600) Subject: Added retry to update operation X-Git-Tag: 1.5.0~24^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=824da679d4f1818d4c30a54908a9c24623c31900;hp=a35c30fe4b501e1bce24fe120cc8cd348b914ac6;p=puppet-modules%2Fpuppetlabs-apt.git Added retry to update operation --- diff --git a/manifests/init.pp b/manifests/init.pp index e4e43b1..d26a8a2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -32,6 +32,7 @@ class apt( $purge_preferences = false, $purge_preferences_d = false, $update_timeout = undef, + $update_tries = undef, $sources = undef ) { diff --git a/manifests/update.pp b/manifests/update.pp index ce0b78f..725bb3b 100644 --- a/manifests/update.pp +++ b/manifests/update.pp @@ -6,5 +6,7 @@ class apt::update { logoutput => 'on_failure', refreshonly => true, timeout => $apt::update_timeout, + tries => $apt::update_tries, + try_sleep => 1 } }