module-apt/manifests/cron/download.pp

28 lines
562 B
ObjectPascal
Raw Normal View History

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
file { '/etc/cron-apt/action.d/4-dist-upgrade':
2010-10-06 14:06:50 +02:00
ensure => absent,
}
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],
owner => root,
group => 0,
mode => '0644';
2010-10-06 14:06:50 +02: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],
owner => root,
group => 0,
mode => '0644';
2010-10-06 14:06:50 +02:00
}
}