summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-10-30 20:51:31 +0100
committermh <mh@immerda.ch>2009-10-30 20:51:31 +0100
commit1874479b3b23c4a63b6544754448da0d594fb468 (patch)
tree8b2e32c2536e7c293c38ab5a4f8457a2625d77e6 /manifests
parent84f7ca76419eecc83cb2bddb048b2e3fb6e36386 (diff)
fixing a string issue and tell it to install the package
Diffstat (limited to 'manifests')
-rw-r--r--manifests/unattended_upgrades.pp7
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'],
}