Merge pull request #407 from mkrakowitzer/f3792625/trusted_param
[puppet-modules/puppetlabs-apt.git] / templates / source.list.erb
index 845b8ae161726ade3f617868362dfc9da975fec4..f9a878e509e377e139955084194a7de955c7844b 100644 (file)
@@ -1,5 +1,12 @@
-# <%= @name %>
-deb <% if @architecture %>[arch=<%= @architecture %>]<% end %> <%= @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 %>[arch=<%= @architecture %>]<% end %> <%= @location %> <%= @release_real %> <%= @repos %>
+deb-src <%- if @architecture or @trusted -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted %>trusted=yes<% end -%>
+] <%- end %><%= @location %> <%= @release_real %> <%= @repos %>
 <%- end -%>