Puppet 4 language update
[puppet-modules/puppetlabs-apt.git] / templates / source.list.epp
diff --git a/templates/source.list.epp b/templates/source.list.epp
new file mode 100644 (file)
index 0000000..727766c
--- /dev/null
@@ -0,0 +1,10 @@
+<%- | String $comment, Hash $includes, $architecture, Boolean $allow_unsigned, $location, $release, String $repos | -%>
+# <%= $comment %>
+<%- if $includes['deb'] { -%>
+deb <%- if ($architecture or $allow_unsigned) {-%>
+ [<%- if ($architecture) {%>arch=<%= $architecture %><% } %><%if ($architecture and $allow_unsigned) {%> <% }%><% if ($allow_unsigned) {%>trusted=yes<% } %>] <%- } %> <%= $location %> <%= $release %> <%= $repos %>
+<%- } -%>
+<%- if $includes['src'] { -%>
+deb-src <%- if $architecture or $allow_unsigned { -%>
+ [<%- if ($architecture) {%>arch=<%= $architecture %><% } %><%if ($architecture and $allow_unsigned) {%> <% }%><% if ($allow_unsigned) {%>trusted=yes<% } %>] <%- } %> <%= $location %> <%= $release %> <%= $repos %>
+<%- } -%>