module-apt/manifests/cron/dist_upgrade.pp

30 lines
648 B
ObjectPascal
Raw Normal View History

class apt::cron::dist_upgrade inherits apt::cron::base {
2010-10-06 14:06:50 +02:00
$action = "autoclean -y
dist-upgrade -y -o APT::Get::Show-Upgraded=true -o 'DPkg::Options::=--force-confold'
2010-10-06 14:06:50 +02:00
"
file { '/etc/cron-apt/action.d/3-download':
2010-10-06 14:06:50 +02:00
ensure => absent,
}
package { 'apt-listbugs': ensure => absent }
file { '/etc/cron-apt/action.d/4-dist-upgrade':
2010-10-06 14:06:50 +02:00
content => $action,
owner => root,
group => 0,
mode => '0644',
require => Package[cron-apt];
2010-10-06 14:06:50 +02:00
}
file { '/etc/cron-apt/config.d/MAILON':
content => "MAILON=upgrade\n",
owner => root,
group => 0,
mode => '0644',
require => Package[cron-apt];
2010-10-06 14:06:50 +02:00
}
}