From: Erik Dalén Date: Thu, 14 Nov 2013 10:02:18 +0000 (+0100) Subject: Retry package installs X-Git-Tag: 1.4.1~18^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7a8e3d00f924131797fcc179c13205d3197fbe0d;p=puppet-modules%2Fpuppetlabs-apt.git Retry package installs Sometimes package installs can fail to aquire the lock file, so retry the command in that case. --- diff --git a/manifests/source.pp b/manifests/source.pp index 713c7e9..bc93ad9 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -61,6 +61,8 @@ define apt::source( command => "${provider} -y install ${required_packages}", logoutput => 'on_failure', refreshonly => true, + tries => 3, + try_sleep => 1, subscribe => File["${name}.list"], before => Exec['apt_update'], }