summaryrefslogtreecommitdiff
path: root/code/environments/production/modules/apt/templates/source.list.epp
diff options
context:
space:
mode:
Diffstat (limited to 'code/environments/production/modules/apt/templates/source.list.epp')
-rw-r--r--code/environments/production/modules/apt/templates/source.list.epp10
1 files changed, 10 insertions, 0 deletions
diff --git a/code/environments/production/modules/apt/templates/source.list.epp b/code/environments/production/modules/apt/templates/source.list.epp
new file mode 100644
index 0000000..4b29726
--- /dev/null
+++ b/code/environments/production/modules/apt/templates/source.list.epp
@@ -0,0 +1,10 @@
+<%- | String $comment, Hash $includes, $opt_architecture, Boolean $allow_unsigned, $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 %>
+<%- } -%>
+<%- 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 %>
+<%- } -%>