From 1874479b3b23c4a63b6544754448da0d594fb468 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 30 Oct 2009 20:51:31 +0100 Subject: [PATCH] fixing a string issue and tell it to install the package --- manifests/unattended_upgrades.pp | 7 ++++--- 1 file 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'], }