diff options
author | Antoine Beaupré <anarcat@koumbit.org> | 2015-06-09 11:34:51 -0400 |
---|---|---|
committer | Antoine Beaupré <anarcat@koumbit.org> | 2015-06-09 11:34:51 -0400 |
commit | 3da1db27075082603a862c8fd5c3c1396e062bc8 (patch) | |
tree | cc39e55a539938ea613430be03c4a8b3d16c16ca /templates | |
parent | dbee5c9487c8d06f27f1a3bb17f70bf870490258 (diff) | |
download | puppet-apt-3da1db27075082603a862c8fd5c3c1396e062bc8.tar.gz puppet-apt-3da1db27075082603a862c8fd5c3c1396e062bc8.tar.bz2 |
also control backports on ubuntu
Diffstat (limited to 'templates')
-rw-r--r-- | templates/Ubuntu/sources.list.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/Ubuntu/sources.list.erb b/templates/Ubuntu/sources.list.erb index 8d2585d..f3ef37c 100644 --- a/templates/Ubuntu/sources.list.erb +++ b/templates/Ubuntu/sources.list.erb @@ -19,8 +19,10 @@ deb <%= ubuntu_url %> <%= codename %>-security <%= lrepos %> deb-src <%= ubuntu_url %> <%= codename %>-security <%= lrepos %> <% end -%> +<% if use_backports=scope.lookupvar('apt::use_backports') -%> # backports deb <%= ubuntu_url %> <%= codename %>-backports <%= lrepos %> -<% if include_src -%> +<% if include_src -%> deb-src <%= ubuntu_url %> <%= codename %>-backports <%= lrepos %> -<% end -%> +<% end + end -%> |