Added retry to update operation
This commit is contained in:
parent
a35c30fe4b
commit
824da679d4
2 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,7 @@ class apt(
|
|||
$purge_preferences = false,
|
||||
$purge_preferences_d = false,
|
||||
$update_timeout = undef,
|
||||
$update_tries = undef,
|
||||
$sources = undef
|
||||
) {
|
||||
|
||||
|
|
|
@ -6,5 +6,7 @@ class apt::update {
|
|||
logoutput => 'on_failure',
|
||||
refreshonly => true,
|
||||
timeout => $apt::update_timeout,
|
||||
tries => $apt::update_tries,
|
||||
try_sleep => 1
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue