diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/Debian/sources.list.erb | 4 | ||||
-rw-r--r-- | templates/proxy.erb | 4 | ||||
-rw-r--r-- | templates/sources.list.volatile.erb | 8 |
3 files changed, 14 insertions, 2 deletions
diff --git a/templates/Debian/sources.list.erb b/templates/Debian/sources.list.erb index b0f490f..382e68d 100644 --- a/templates/Debian/sources.list.erb +++ b/templates/Debian/sources.list.erb @@ -23,9 +23,9 @@ deb-src <%= security_url %> <%= codename %>/updates <%= repos %> <% if (release == "testing" || release == "unstable" || release == "experimental") -%> # There is no backports archive for <%= release %> <% else -%> -deb <%= backports_url %> <%= codename %>-backports <%= repos %> +deb <%= backports_url %> <%= codename %>-backports main <% if include_src then -%> -deb-src <%= backports_url %> <%= codename %>-backports <%= repos %> +deb-src <%= backports_url %> <%= codename %>-backports main <% end -%> <% end -%> diff --git a/templates/proxy.erb b/templates/proxy.erb new file mode 100644 index 0000000..01c9861 --- /dev/null +++ b/templates/proxy.erb @@ -0,0 +1,4 @@ +Acquire { +<% if apt_http_proxy != false %> HTTP::Proxy "<%= apt_http_proxy %>";<% end %> +<% if apt_ftp_proxy != false %> FTP::Proxy "<%= apt_ftp_proxy %>";<% end %> +}; diff --git a/templates/sources.list.volatile.erb b/templates/sources.list.volatile.erb new file mode 100644 index 0000000..cc9316b --- /dev/null +++ b/templates/sources.list.volatile.erb @@ -0,0 +1,8 @@ +# This file is brought to you by puppet + +# backports +<% if (lsbdistcodename == "sid" || lsbdistcodename == "unstable") -%> +# There are no backports for for <%= lsbdistcodename %> +<% else -%> +deb http://volatile.debian.org/debian-volatile <%= lsbdistcodename %>/volatile main contrib non-free +<% end -%> |