1234567891011121314151617181920212223242526272829 |
- 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];
- }
- }
|