]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
also control backports on ubuntu
authorAntoine Beaupré <anarcat@koumbit.org>
Tue, 9 Jun 2015 15:34:51 +0000 (11:34 -0400)
committerAntoine Beaupré <anarcat@koumbit.org>
Tue, 9 Jun 2015 15:34:51 +0000 (11:34 -0400)
templates/Ubuntu/sources.list.erb

index 8d2585d5b48a03f5eacc77f8e6afca77f6bcd6b0..f3ef37ca77fa76ae41ba150e28d3aa09738cfcee 100644 (file)
@@ -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 -%>