2010-10-10 11:09:25 +02:00
|
|
|
class apt::cron::download inherits apt::cron::base {
|
2010-10-06 14:06:50 +02:00
|
|
|
|
|
|
|
$action = "autoclean -y
|
|
|
|
dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
|
|
|
|
"
|
2012-06-18 16:41:04 +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
|
|
|
ensure => absent,
|
|
|
|
}
|
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
file { '/etc/cron-apt/action.d/3-download':
|
2010-10-06 14:06:50 +02:00
|
|
|
content => $action,
|
2012-06-18 16:41:04 +02:00
|
|
|
require => Package[cron-apt],
|
2013-01-02 14:12:11 +01:00
|
|
|
owner => root,
|
|
|
|
group => 0,
|
|
|
|
mode => '0644';
|
2010-10-06 14:06:50 +02:00
|
|
|
}
|
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
file { '/etc/cron-apt/config.d/MAILON':
|
2010-10-06 14:06:50 +02:00
|
|
|
content => "MAILON=changes\n",
|
2012-06-18 16:41:04 +02:00
|
|
|
require => Package[cron-apt],
|
2013-01-02 14:12:11 +01:00
|
|
|
owner => root,
|
|
|
|
group => 0,
|
|
|
|
mode => '0644';
|
2010-10-06 14:06:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|