aboutsummaryrefslogtreecommitdiff
path: root/manifests/unattended_upgrades.pp
blob: cfadc5efd8bf76b79b830f1c29c2ab29f468c546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class apt::unattended_upgrades {
  package{'unattended-upgrades': ensure => present }

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