aboutsummaryrefslogtreecommitdiff
path: root/manifests/unattended_upgrades.pp
blob: 9a6c13ba3a945a3a0ea261c034d1f84aff7975d8 (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,
    require => undef,
  }

  config_file {
    "/etc/apt/apt.conf.d/unattended_upgrades":
      content => 'APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
',
      before => Concatenated_file[apt_config],
      require => Package['unattended-upgrades'],
  }
}