2012-12-15 12:49:20 +01:00
|
|
|
// this file is managed by puppet !
|
|
|
|
|
2013-07-27 19:38:27 +02:00
|
|
|
<% if scope.lookupvar('::operatingsystem') == 'Ubuntu' -%>
|
2015-05-06 23:14:53 +02:00
|
|
|
Unattended-Upgrade::Allowed-Origins {
|
2013-04-14 14:54:10 +02:00
|
|
|
"${distro_id}:${distro_codename}-security";
|
|
|
|
"${distro_id}:${distro_codename}-updates";
|
|
|
|
"${distro_id}:${distro_codename}-backports";
|
2015-10-09 22:39:19 +02:00
|
|
|
<% elsif scope.lookupvar('::operatingsystem') == 'Debian' and scope.lookupvar('::debian_codename') == 'wheezy' -%>
|
2015-05-06 23:14:53 +02:00
|
|
|
Unattended-Upgrade::Origins-Pattern {
|
2015-05-11 16:49:27 +02:00
|
|
|
"origin=Debian,archive=<%= scope.lookupvar('::debian_release') %>,label=Debian-Security";
|
2015-05-11 15:55:26 +02:00
|
|
|
"origin=Debian,archive=${distro_codename}-lts";
|
2015-10-09 22:39:19 +02:00
|
|
|
<% else -%>
|
|
|
|
Unattended-Upgrade::Origins-Pattern {
|
|
|
|
"origin=Debian,codename=${distro_codename},label=Debian";
|
|
|
|
"origin=Debian,codename=${distro_codename},label=Debian-Security";
|
2013-07-27 19:38:27 +02:00
|
|
|
<% 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 -%>
|
2015-05-07 18:52:25 +02:00
|
|
|
};
|
2015-04-17 22:43:26 +02:00
|
|
|
<% 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 -%>
|