summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-06-29 17:39:14 +0000
committerintrigeri <intrigeri@boum.org>2016-06-29 17:39:14 +0000
commit195ed5d31bf5dabd5efe4460127002351499eac2 (patch)
treef8ff3f7c0c4de5dd92a8ccb56612d8729c8bc1b3 /manifests
parent2bbfe8cab9ba8125feb9f54865e3025bf4d355ee (diff)
apt::dist_upgrade: add a timeout parameter (#8).
Diffstat (limited to 'manifests')
-rw-r--r--manifests/dist_upgrade.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/dist_upgrade.pp b/manifests/dist_upgrade.pp
index 19c031e..e5475fc 100644
--- a/manifests/dist_upgrade.pp
+++ b/manifests/dist_upgrade.pp
@@ -1,8 +1,13 @@
-class apt::dist_upgrade {
+# Parameters:
+# - timeout: specified in seconds
+class apt::dist_upgrade (
+ $timeout = 300,
+) {
exec { 'apt_dist-upgrade':
command => '/usr/bin/apt-get -q -y -o \'DPkg::Options::=--force-confold\' dist-upgrade',
refreshonly => true,
+ timeout => $timeout,
before => Exec['apt_updated']
}