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

index f3ef37ca77fa76ae41ba150e28d3aa09738cfcee..213f0516e4509dbf706aa94384582c3c0f7d07df 100644 (file)
@@ -7,11 +7,13 @@ deb <%= ubuntu_url=scope.lookupvar('apt::ubuntu_url') %> <%= codename %> <%= lre
 deb-src <%= ubuntu_url %> <%= codename %> <%= lrepos %>
 <% end -%>
 
+<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>
 # updates
 deb <%= ubuntu_url %> <%= codename %>-updates <%= lrepos %>
-<% if include_src -%>
+<%   if include_src -%>
 deb-src <%= ubuntu_url %> <%= codename %>-updates <%= lrepos %>
-<% end -%>
+<%   end
+   end -%>
 
 # security suppport
 deb <%= ubuntu_url %> <%= codename %>-security <%= lrepos %>