aboutsummaryrefslogtreecommitdiff
path: root/manifests/unattended_upgrades.pp
blob: c984c409be36f99dc4415075a8383a1d8647ffb2 (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 => Config_file[apt_config],
      require => Package['unattended-upgrades'],
  }
}