blob: 91301efd5f8d86bb26f51ce954238d365aae0ab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class site_apt::dist_upgrade {
if $::apt_running == 'true' {
fail ('apt-get is running in background - Please wait until it finishes. Exiting.')
} else {
exec{'initial_apt_update':
command => '/usr/bin/apt-get update',
refreshonly => false,
}
exec{'initial_apt_dist_upgrade':
command => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
refreshonly => false,
timeout => 1200,
}
}
}
|