apt::dist_upgrade: add a timeout parameter (#8).

This commit is contained in:
intrigeri 2016-06-29 17:39:14 +00:00
parent 2bbfe8cab9
commit 195ed5d31b

View file

@ -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']
}