X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=inline;f=templates%2Fsource.list.epp;fp=templates%2Fsource.list.epp;h=727766c376cb092bfee570a6abdce7fa332e5ddc;hb=b87e1af3704f5574bda393e36ded542ee7c4be23;hp=0000000000000000000000000000000000000000;hpb=3f6863ac4c97f834bebc811852452b073d202682;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/source.list.epp b/templates/source.list.epp new file mode 100644 index 0000000..727766c --- /dev/null +++ b/templates/source.list.epp @@ -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 %> +<%- } -%>