2012-04-15 15:41:58 +02:00
|
|
|
class apt::cron::dist_upgrade inherits apt::cron::base {
|
2010-10-06 14:06:50 +02:00
|
|
|
|
|
|
|
$action = "autoclean -y
|
2011-02-18 22:41:36 +01:00
|
|
|
dist-upgrade -y -o APT::Get::Show-Upgraded=true -o 'DPkg::Options::=--force-confold'
|
2010-10-06 14:06:50 +02:00
|
|
|
"
|
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
file { '/etc/cron-apt/action.d/3-download':
|
2010-10-06 14:06:50 +02:00
|
|
|
ensure => absent,
|
|
|
|
}
|
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
package { 'apt-listbugs': ensure => absent }
|
2010-10-17 17:44:19 +02:00
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
file { '/etc/cron-apt/action.d/4-dist-upgrade':
|
2010-10-06 14:06:50 +02:00
|
|
|
content => $action,
|
2013-01-02 14:12:11 +01:00
|
|
|
owner => root,
|
|
|
|
group => 0,
|
|
|
|
mode => '0644',
|
|
|
|
require => Package[cron-apt];
|
2010-10-06 14:06:50 +02:00
|
|
|
}
|
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
file { '/etc/cron-apt/config.d/MAILON':
|
2013-01-03 19:57:44 +01:00
|
|
|
content => "MAILON=upgrade\n",
|
2013-01-02 14:12:11 +01:00
|
|
|
owner => root,
|
|
|
|
group => 0,
|
|
|
|
mode => '0644',
|
|
|
|
require => Package[cron-apt];
|
2010-10-06 14:06:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|