summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c9e61bc..2e4398c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -56,7 +56,8 @@ class apt {
}
exec {
- "/usr/bin/apt-get -y update #on refresh":
+ # "&& sleep 1" is workaround for older(?) clients
+ "/usr/bin/apt-get -y update && sleep 1 #on refresh":
refreshonly => true,
subscribe => [ File["/etc/apt/sources.list"],
File["/etc/apt/preferences"], File["/etc/apt/apt.conf.d"],