aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-11-06 09:28:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-11-06 09:28:51 -0300
commit8c5b6a9817ae053ac9d2313fd000ae7bc1c0bd02 (patch)
tree598fd175299bcb537c32fef962afa78ac3aefce3
parent9c36a3a0fcac5f54a98d95b6afdd2d2ee218a81e (diff)
downloadpuppet-nodo-8c5b6a9817ae053ac9d2313fd000ae7bc1c0bd02.tar.gz
puppet-nodo-8c5b6a9817ae053ac9d2313fd000ae7bc1c0bd02.tar.bz2
Fix: apt: security.debian config for newer debian releases
-rw-r--r--templates/apt/Debian.sources.list.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/apt/Debian.sources.list.erb b/templates/apt/Debian.sources.list.erb
index e8c1d80..8d0fc76 100644
--- a/templates/apt/Debian.sources.list.erb
+++ b/templates/apt/Debian.sources.list.erb
@@ -12,8 +12,13 @@ deb <%= @mirror %>/debian/ <%= scope.lookupvar('::lsbdistcodename') %>-updates m
deb-src https://deb.debian.org/debian/ <%= scope.lookupvar('::lsbdistcodename') %>-updates main contrib non-free
# security
+<% if scope.lookupvar('::lsbdistcodename') == 'stretch' or scope.lookupvar('::lsbdistcodename') == 'buster' -%>
deb http://security.debian.org/ <%= scope.lookupvar('::lsbdistcodename') %>/updates main contrib non-free
deb-src http://security.debian.org/ <%= scope.lookupvar('::lsbdistcodename') %>/updates main contrib non-free
+<% else -%>
+deb http://security.debian.org/debian-security <%= scope.lookupvar('::lsbdistcodename') %>-security main contrib non-free
+deb-src http://security.debian.org/debian-security <%= scope.lookupvar('::lsbdistcodename') %>-security main contrib non-free
+<% end -%>
# backports
deb <%= @mirror %>/debian/ <%= scope.lookupvar('::lsbdistcodename') %>-backports main contrib non-free