From 7a8e3d00f924131797fcc179c13205d3197fbe0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Erik=20Dal=C3=A9n?= Date: Thu, 14 Nov 2013 11:02:18 +0100 Subject: [PATCH] Retry package installs Sometimes package installs can fail to aquire the lock file, so retry the command in that case. --- manifests/source.pp | 2 ++ 1 file changed, 2 insertions(+) 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'], } -- 2.45.2