X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fsource.list.epp;h=2b8dd6e57d04b40d3d18b4927c291f1fdccbe8e8;hb=refs%2Fheads%2Frelease-prep;hp=4b29726c57464ca65f743d68b73d3b708ef2d4c4;hpb=e9dadf5ed3308655d003374c4b2c2f5fe8619c27;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/source.list.epp b/templates/source.list.epp index 4b29726..2b8dd6e 100644 --- a/templates/source.list.epp +++ b/templates/source.list.epp @@ -1,10 +1,8 @@ -<%- | String $comment, Hash $includes, $opt_architecture, Boolean $allow_unsigned, $location, $release, String $repos | -%> +<%- | String $comment, Hash $includes, Hash $options, $location, $release, String $repos | -%> # <%= $comment %> <%- if $includes['deb'] { -%> -deb <%- if ($opt_architecture or $allow_unsigned) {-%> - [<%- if ($opt_architecture) {%>arch=<%= $opt_architecture %><% } %><%if ($opt_architecture and $allow_unsigned) {%> <% }%><% if ($allow_unsigned) {%>trusted=yes<% } %>] <%- } %> <%= $location %> <%= $release %> <%= $repos %> +deb <% if !$options.empty() { -%>[<%= $options.map |$key, $value| { if !$value.empty() { "${key}=${value}" } }.join(" ") %>] <% } -%> <%= $location %> <%= $release %> <%= $repos %> <%- } -%> <%- if $includes['src'] { -%> -deb-src <%- if $opt_architecture or $allow_unsigned { -%> - [<%- if ($opt_architecture) {%>arch=<%= $opt_architecture %><% } %><%if ($opt_architecture and $allow_unsigned) {%> <% }%><% if ($allow_unsigned) {%>trusted=yes<% } %>] <%- } %> <%= $location %> <%= $release %> <%= $repos %> +deb-src <% if !$options.empty() { -%>[<%= $options.map |$key, $value| { if !$value.empty() { "${key}=${value}" } }.join(" ") %>] <% } -%> <%= $location %> <%= $release %> <%= $repos %> <%- } -%>