summaryrefslogtreecommitdiff
path: root/manifests/cron/dist-upgrade.pp
blob: 069601fa600ac92ce6fab9f01b9f2ea88ab64e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class apt::cron::dist-upgrade inherits apt::cron::base {

  $action = "autoclean -y
dist-upgrade -y -o APT::Get::Show-Upgraded=true
"

  file { "/etc/cron-apt/action.d/3-download":
    ensure => absent,
  }

  config_file { "/etc/cron-apt/action.d/4-dist-upgrade":
    content => $action,
    require => Package[cron-apt]
  }

  config_file { "/etc/cron-apt/config.d/MAILON":
    content => "MAILON=upgrade\n",
    require => Package[cron-apt]
  }

}