14cd91de33
This makes this class' behaviour consistent with the apt::dist_upgrade one and prevents stalled upgrades due to dpkg asking questions to a dumb robot.
23 lines
536 B
Puppet
23 lines
536 B
Puppet
class apt::cron::dist-upgrade inherits apt::cron::base {
|
|
|
|
$action = "autoclean -y
|
|
dist-upgrade -y -o APT::Get::Show-Upgraded=true -o 'DPkg::Options::=--force-confold'
|
|
"
|
|
|
|
file { "/etc/cron-apt/action.d/3-download":
|
|
ensure => absent,
|
|
}
|
|
|
|
package { "apt-listbugs": ensure => absent }
|
|
|
|
config_file { "/etc/cron-apt/action.d/4-dist-upgrade":
|
|
content => $action,
|
|
require => Package[cron-apt]
|
|
}
|
|
|
|
config_file { "/etc/cron-apt/config.d/MAILON":
|
|
content => "MAILON=upgrade\n",
|
|
require => Package[cron-apt]
|
|
}
|
|
|
|
}
|