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";
|
2015-05-06 19:31:07 +02:00
|
|
|
<% elsif scope.lookupvar('::operatingsystem') == 'Debian' and scope.lookupvar('::operatingsystemmajrelease') == 6 -%>
|
2013-07-27 19:38:27 +02:00
|
|
|
"${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
|
|
|
};
|
|
|
|
|
2015-04-17 22:43:26 +02:00
|
|
|
<% if not @blacklisted_packages.empty? -%>
|
|
|
|
Unattended-Upgrade::Package-Blacklist {
|
|
|
|
<% @blacklisted_packages.each do |pkg| -%>
|
|
|
|
"<%= pkg %>";
|
|
|
|
<% end -%>
|
|
|
|
}
|
|
|
|
<% end -%>
|
|
|
|
|
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";
|
|
|
|
|
2015-04-17 22:42:22 +02:00
|
|
|
Unattended-Upgrade::Mail "<%= @mail_recipient -%>";
|
|
|
|
<% if @mailonlyonerror -%>
|
2013-04-14 14:54:10 +02:00
|
|
|
Unattended-Upgrade::MailOnlyOnError "true";
|
2013-07-27 19:38:27 +02:00
|
|
|
<% end -%>
|