Merge pull request #542 from infopro-digital/fix_apt_params
[puppet-modules/puppetlabs-apt.git] / templates / source.list.erb
index 345269162b55add1d6938bc2bc3e4df23c0c1564..fe7f55941a1ac43098ed15b2e9aed0461818d499 100644 (file)
@@ -1,5 +1,11 @@
-# <%= name %>
-deb <%= location %> <%= release %> <%= repos %>
-<%- if include_src then -%>
-deb-src <%= location %> <%= release %> <%= repos %>
+# <%= @comment %>
+<%- if @_include['deb'] then -%>
+deb <%- if @architecture or @_allow_unsigned -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @_allow_unsigned %>trusted=yes<% end -%>
+] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
+<%- end -%>
+<%- if @_include['src'] then -%>
+deb-src <%- if @architecture or @_allow_unsigned -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @_allow_unsigned %>trusted=yes<% end -%>
+] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
 <%- end -%>