module-apt/manifests/dist_upgrade.pp

19 lines
372 B
ObjectPascal
Raw Normal View History

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