Merge pull request #407 from mkrakowitzer/f3792625/trusted_param
[puppet-modules/puppetlabs-apt.git] / templates / source.list.erb
index faa7e286ece80cfafd89db734010328030b03c24..f9a878e509e377e139955084194a7de955c7844b 100644 (file)
@@ -1,5 +1,12 @@
-# <%= name %>
-deb <%= location %> <%= release_real %> <%= repos %>
-<%- if include_src then -%>
-deb-src <%= location %> <%= release_real %> <%= repos %>
+#file generated by puppet
+# <%= @comment %>
+<%- if @include_deb then -%>
+deb <%- if @architecture or @trusted -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted %>trusted=yes<% end -%>
+] <%- end %><%= @location %> <%= @release_real %> <%= @repos %>
+<%- end -%>
+<%- if @include_src then -%>
+deb-src <%- if @architecture or @trusted -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted %>trusted=yes<% end -%>
+] <%- end %><%= @location %> <%= @release_real %> <%= @repos %>
 <%- end -%>