aboutsummaryrefslogtreecommitdiff
path: root/manifests/unattended_upgrades.pp
blob: e2992f81c839d673348bdf06728a61b9fd86e311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class apt::unattended_upgrades {

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

  apt_conf { "50unattended-upgrades":
    source  => ["puppet:///modules/site-apt/50unattended-upgrades",
		"puppet:///modules/apt/50unattended-upgrades" ],
    require => Package['unattended-upgrades'],
  }

  if $custom_preferences != false {
    Apt_conf["50unattended-upgrades"] {
      before => Concatenated_file[apt_config],
    }
  }
}