summaryrefslogtreecommitdiff
path: root/puppet/modules/apt/manifests/cron/dist_upgrade.pp
blob: 74403bb7a2ad685433171d27ff6663b72109071d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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];
  }

}