summaryrefslogtreecommitdiff
path: root/manifests/unattended_upgrades.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-10-30 20:35:30 +0100
committermh <mh@immerda.ch>2009-10-30 20:35:30 +0100
commit84f7ca76419eecc83cb2bddb048b2e3fb6e36386 (patch)
tree71e21d8b294425137fdda834f116979cd7eee8f5 /manifests/unattended_upgrades.pp
parentb0e0f720d0f0480c96c377bde6f46a2d8820f646 (diff)
introduce a class to manage unattended-upgrades
Diffstat (limited to 'manifests/unattended_upgrades.pp')
-rw-r--r--manifests/unattended_upgrades.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/unattended_upgrades.pp b/manifests/unattended_upgrades.pp
new file mode 100644
index 0000000..f4544fa
--- /dev/null
+++ b/manifests/unattended_upgrades.pp
@@ -0,0 +1,12 @@
+class apt::unattended_upgrades {
+ package{'unattended-upgrades': }
+ 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'],
+ }
+ }
+}