module-apt/manifests/cron/dist_upgrade.pp
intrigeri 1fe1fe66c3 Fix overzealous linting.
We do want to see \n expanded in this string.
2013-01-03 19:57:44 +01:00

29 lines
648 B
Puppet

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