From d0e49a478584b6ac6e18846e2f0b9b4c0d1c5b21 Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 14 Dec 2012 16:59:21 +0100 Subject: deploy custom unettended upgrade file --- puppet/modules/site_apt/files/50unattended-upgrades | 13 +++++++++++++ puppet/modules/site_apt/manifests/init.pp | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 puppet/modules/site_apt/files/50unattended-upgrades (limited to 'puppet/modules') 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 } -- cgit v1.2.3