summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-12-14 16:59:21 +0100
committervarac <varacanero@zeromail.org>2012-12-14 16:59:21 +0100
commitd0e49a478584b6ac6e18846e2f0b9b4c0d1c5b21 (patch)
tree8c9248cbc6624afa892cb570c1e8bf8860e1cdb6
parente074a620b3b661a46469f3bba43e699ec77c1a27 (diff)
deploy custom unettended upgrade file
-rw-r--r--puppet/modules/site_apt/files/50unattended-upgrades13
-rw-r--r--puppet/modules/site_apt/manifests/init.pp2
2 files changed, 15 insertions, 0 deletions
diff --git a/puppet/modules/site_apt/files/50unattended-upgrades b/puppet/modules/site_apt/files/50unattended-upgrades
new file mode 100644
index 00000000..1639e68a
--- /dev/null
+++ b/puppet/modules/site_apt/files/50unattended-upgrades
@@ -0,0 +1,13 @@
+Unattended-Upgrade::Origins-Pattern {
+ "o=${distro_id},n=${distro_codename}";
+ "o=${distro_id},n=${distro_codename}-updates";
+ "o=${distro_id},n=${distro_codename}-proposed-updates";
+ "o=${dis tro_id},n=${distro_codename},l=Debian-security";
+};
+
+
+Unattended-Upgrade::Mail "root";
+
+Unattended-Upgrade::MailOnlyOnError "true";
+
+
diff --git a/puppet/modules/site_apt/manifests/init.pp b/puppet/modules/site_apt/manifests/init.pp
index 7f8b09a1..7d1d039c 100644
--- a/puppet/modules/site_apt/manifests/init.pp
+++ b/puppet/modules/site_apt/manifests/init.pp
@@ -5,4 +5,6 @@ class site_apt {
apt::apt_conf { '90disable-pdiffs':
content => 'Acquire::PDiffs "false";';
}
+
+ include ::apt::unattended_upgrades
}