2010-12-16 13:02:28 +01:00
|
|
|
class apt::dist_upgrade {
|
|
|
|
|
2012-12-18 22:31:00 +01:00
|
|
|
if $apt::disable_update == false {
|
|
|
|
include apt::update
|
|
|
|
}
|
2010-12-16 13:02:28 +01:00
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
$req = $apt::disable_update ? {
|
|
|
|
true => undef,
|
|
|
|
default => Exec['apt_updated'],
|
|
|
|
}
|
|
|
|
|
2010-12-16 13:02:28 +01:00
|
|
|
exec { 'apt_dist-upgrade':
|
2013-01-02 14:12:11 +01:00
|
|
|
command => '/usr/bin/apt-get -q -y -o \'DPkg::Options::=--force-confold\' dist-upgrade',
|
2010-12-16 13:02:28 +01:00
|
|
|
refreshonly => true,
|
2013-01-02 14:12:11 +01:00
|
|
|
require => $req
|
2010-12-16 13:02:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|