summaryrefslogtreecommitdiff
path: root/manifests/unattended_upgrades.pp
blob: 80939e33202967cfffe6e01a9fb08e7313f72ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class apt::unattended_upgrades {

  package { 'unattended-upgrades':
    ensure  => present
  }

  apt_conf { '50unattended-upgrades':
    source  => [
                "puppet:///modules/site_apt/${::lsbdistid}/50unattended-upgrades.${::lsbdistcodename}",
                "puppet:///modules/site_apt/${::lsbdistid}/50unattended-upgrades",
                "puppet:///modules/apt/${::lsbdistid}/50unattended-upgrades.${::lsbdistcodename}",
                "puppet:///modules/apt/${::lsbdistid}/50unattended-upgrades" ],
    require => Package['unattended-upgrades'],
  }
}