aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-06 13:31:07 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-06 13:40:29 -0400
commitf1a53bcfa7702f3bd1f86486d10b1f10cd0f2663 (patch)
treeb1b65b72ec1f699952a2436feab6800d72593dc1
parent74db9ebf282b7ef4488ae8e6b82652d1a2e7eac1 (diff)
downloadpuppet-apt-f1a53bcfa7702f3bd1f86486d10b1f10cd0f2663.tar.gz
puppet-apt-f1a53bcfa7702f3bd1f86486d10b1f10cd0f2663.tar.bz2
Fix error in 50unattended-upgrades.erb syntax, remove lsb fact
-rw-r--r--templates/50unattended-upgrades.erb3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/50unattended-upgrades.erb b/templates/50unattended-upgrades.erb
index 4492c2d..94059d5 100644
--- a/templates/50unattended-upgrades.erb
+++ b/templates/50unattended-upgrades.erb
@@ -5,8 +5,7 @@ Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}-security";
"${distro_id}:${distro_codename}-updates";
"${distro_id}:${distro_codename}-backports";
-<% else -%>
-<% if scope.lookupvar('::lsbdistcodename') == 'squeeze' -%>
+<% elsif scope.lookupvar('::operatingsystem') == 'Debian' and scope.lookupvar('::operatingsystemmajrelease') == 6 -%>
"${distro-id} ${distro-codename}-security";
"${distro-id} ${distro-codename}-lts";
<% else -%>