diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/unattended_upgrades.pp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/unattended_upgrades.pp b/manifests/unattended_upgrades.pp index f4544fa..0ebccae 100644 --- a/manifests/unattended_upgrades.pp +++ b/manifests/unattended_upgrades.pp @@ -1,10 +1,11 @@ class apt::unattended_upgrades { - package{'unattended-upgrades': } + package{'unattended-upgrades': ensure => present } + config_file { "/etc/apt/apt.conf.d/unattended_upgrades": - content => "APT::Periodic::Update-Package-Lists "1"; + content => 'APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1"; -", +', before => File[apt_config], require => Package['unattended-upgrades'], } |