ded81d8edc
Signed-off-by: Gabriel Filion <lelutin@gmail.com> + more linting by intrigeri. Conflicts: manifests/apticron.pp manifests/cron/dist_upgrade.pp manifests/cron/download.pp manifests/dist_upgrade/initiator.pp manifests/init.pp manifests/listchanges.pp manifests/preferences.pp manifests/preseeded_package.pp manifests/proxy_client.pp manifests/unattended_upgrades.pp manifests/update.pp
27 lines
562 B
Puppet
27 lines
562 B
Puppet
class apt::cron::download inherits apt::cron::base {
|
|
|
|
$action = "autoclean -y
|
|
dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
|
|
"
|
|
|
|
file { '/etc/cron-apt/action.d/4-dist-upgrade':
|
|
ensure => absent,
|
|
}
|
|
|
|
file { '/etc/cron-apt/action.d/3-download':
|
|
content => $action,
|
|
require => Package[cron-apt],
|
|
owner => root,
|
|
group => 0,
|
|
mode => '0644';
|
|
}
|
|
|
|
file { '/etc/cron-apt/config.d/MAILON':
|
|
content => "MAILON=changes\n",
|
|
require => Package[cron-apt],
|
|
owner => root,
|
|
group => 0,
|
|
mode => '0644';
|
|
}
|
|
|
|
}
|