diff options
Diffstat (limited to 'puppet/modules/site_apt')
-rw-r--r-- | puppet/modules/site_apt/files/50unattended-upgrades | 13 | ||||
-rw-r--r-- | puppet/modules/site_apt/manifests/init.pp | 2 |
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 } |