dist_upgrade.pp 648 B

1234567891011121314151617181920212223242526272829
  1. class apt::cron::dist_upgrade inherits apt::cron::base {
  2. $action = "autoclean -y
  3. dist-upgrade -y -o APT::Get::Show-Upgraded=true -o 'DPkg::Options::=--force-confold'
  4. "
  5. file { '/etc/cron-apt/action.d/3-download':
  6. ensure => absent,
  7. }
  8. package { 'apt-listbugs': ensure => absent }
  9. file { '/etc/cron-apt/action.d/4-dist-upgrade':
  10. content => $action,
  11. owner => root,
  12. group => 0,
  13. mode => '0644',
  14. require => Package[cron-apt];
  15. }
  16. file { '/etc/cron-apt/config.d/MAILON':
  17. content => "MAILON=upgrade\n",
  18. owner => root,
  19. group => 0,
  20. mode => '0644',
  21. require => Package[cron-apt];
  22. }
  23. }