ded81d8edc
Signed-off-by: Gabriel Filion <lelutin@gmail.com> + more linting by intrigeri. Conflicts: manifests/apticron.pp manifests/cron/dist_upgrade.pp manifests/cron/download.pp manifests/dist_upgrade/initiator.pp manifests/init.pp manifests/listchanges.pp manifests/preferences.pp manifests/preseeded_package.pp manifests/proxy_client.pp manifests/unattended_upgrades.pp manifests/update.pp
18 行
372 B
Puppet
18 行
372 B
Puppet
class apt::dist_upgrade {
|
|
|
|
if $apt::disable_update == false {
|
|
include apt::update
|
|
}
|
|
|
|
$req = $apt::disable_update ? {
|
|
true => undef,
|
|
default => Exec['apt_updated'],
|
|
}
|
|
|
|
exec { 'apt_dist-upgrade':
|
|
command => '/usr/bin/apt-get -q -y -o \'DPkg::Options::=--force-confold\' dist-upgrade',
|
|
refreshonly => true,
|
|
require => $req
|
|
}
|
|
|
|
}
|