apt::dist_upgrade: add a timeout parameter (#8).
This commit is contained in:
parent
2bbfe8cab9
commit
195ed5d31b
1 changed files with 6 additions and 1 deletions
|
@ -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']
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue