diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-11-06 09:28:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-11-06 09:28:51 -0300 |
commit | 8c5b6a9817ae053ac9d2313fd000ae7bc1c0bd02 (patch) | |
tree | 598fd175299bcb537c32fef962afa78ac3aefce3 | |
parent | 9c36a3a0fcac5f54a98d95b6afdd2d2ee218a81e (diff) | |
download | puppet-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.erb | 5 |
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 |