Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #991 from johanfleury/feature/add-support-for-signed-by-in-source...
[puppet-modules/puppetlabs-apt.git]
/
templates
/
source.list.epp
diff --git
a/templates/source.list.epp
b/templates/source.list.epp
index 4b29726c57464ca65f743d68b73d3b708ef2d4c4..5924c8f84c1c6c48019b22514980e70f3f16b7c5 100644
(file)
--- 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'] { -%>
# <%= $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| { "${key}=${value}" }.join(" ") %>] <% } -%> <%= $location %> <%= $release %> <%= $repos %>
<%- } -%>
<%- if $includes['src'] { -%>
<%- } -%>
<%- 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| { "${key}=${value}" }.join(" ") %>] <% } -%> <%= $location %> <%= $release %> <%= $repos %>
<%- } -%>
<%- } -%>