2012-12-15 12:49:20 +01:00
|
|
|
// this file is managed by puppet !
|
|
|
|
|
|
|
|
Unattended-Upgrade::Allowed-Origins {
|
2013-07-27 19:38:27 +02:00
|
|
|
<% if scope.lookupvar('::operatingsystem') == 'Ubuntu' -%>
|
2013-04-14 14:54:10 +02:00
|
|
|
"${distro_id}:${distro_codename}-security";
|
|
|
|
"${distro_id}:${distro_codename}-updates";
|
|
|
|
"${distro_id}:${distro_codename}-backports";
|
2013-07-27 19:38:27 +02:00
|
|
|
<% else -%>
|
|
|
|
<% if scope.lookupvar('::lsbdistcodename') == 'squeeze' -%>
|
|
|
|
"${distro-id} ${distro-codename}-security";
|
|
|
|
"${distro-id} ${distro-codename}-lts";
|
|
|
|
<% else -%>
|
|
|
|
# See Debian bug #704087
|
|
|
|
"o=Debian,a=oldstable,l=Debian-Security";
|
|
|
|
"o=Debian,a=stable,l=Debian-Security";
|
|
|
|
<% end -%>
|
2012-12-15 12:49:20 +01:00
|
|
|
};
|
|
|
|
|
2012-12-16 10:43:43 +01:00
|
|
|
APT::Periodic::Update-Package-Lists "1";
|
|
|
|
APT::Periodic::Download-Upgradeable-Packages "1";
|
|
|
|
APT::Periodic::Unattended-Upgrade "1";
|
|
|
|
|
2013-07-27 19:42:54 +02:00
|
|
|
Unattended-Upgrade::Mail "<%= mail_recipient -%>";
|
2013-07-27 19:38:27 +02:00
|
|
|
<% if mailonlyonerror -%>
|
2013-04-14 14:54:10 +02:00
|
|
|
Unattended-Upgrade::MailOnlyOnError "true";
|
2013-07-27 19:38:27 +02:00
|
|
|
<% end -%>
|