|
| 1 | +<% | String $comment, |
| 2 | + Enum['yes','no'] $enabled, |
| 3 | + Hash $types,Array[String] $uris, |
| 4 | + Array[String] $suites, |
| 5 | + Array[String] $components, |
| 6 | + Optional[Array] $architectures = undef, |
| 7 | + Optional[Enum['yes','no']] $allow_insecure = undef, |
| 8 | + Optional[Enum['yes','no']] $repo_trusted = undef, |
| 9 | + Optional[Enum['yes','no']] $check_valid_until = undef, |
| 10 | + Optional[Variant[Array[String], String]] $signed_by = undef, |
| 11 | + Optional[Hash] $options = undef |
| 12 | +| -%> |
| 13 | +# This file is managed by Puppet. DO NOT EDIT. |
| 14 | +# <%= $comment %> |
| 15 | +Enabled: <%= $enabled %> |
| 16 | +Types:<% if $types['deb'] { %> deb<% } %><% if $types['src'] { %> deb-src<% } %> |
| 17 | +URIs: <% $uris.each | String $uri | { -%> <%= $uri %> <% } %> |
| 18 | +Suites: <% $suites.each | String $suite | { -%> <%= $suite %> <% } %> |
| 19 | +Components: <% $components.each | String $component | { -%> <%= $component %> <% } %> |
| 20 | +<% if $architectures { -%> |
| 21 | +Architectures:<% $architectures.each | String $arch | { %> <%= $arch %><% } %> |
| 22 | +<%- } -%> |
| 23 | +<% if $allow_insecure { -%> |
| 24 | +Allow-Insecure: <%= $allow_insecure %> |
| 25 | +<% } -%> |
| 26 | +<% if $repo_trusted { -%> |
| 27 | +Trusted: <%= $repo_trusted %> |
| 28 | +<% } -%> |
| 29 | +<% if $check_valid_until { -%> |
| 30 | +Check-Valid-Until: <%= $check_valid_until %> |
| 31 | +<% } -%> |
| 32 | +<% if $signed_by { -%> |
| 33 | +Signed-By: <% if type($signed_by) =~ Type[Array] { -%><%- $signed_by.each |String $keyring| { -%><%= $keyring %> <% } %> |
| 34 | +<%- } -%> |
| 35 | +<%- elsif type($signed_by) =~ Type[String] { %> |
| 36 | + <%= $signed_by -%> |
| 37 | +<%- }} -%> |
| 38 | +<% if $options { -%> |
| 39 | +# Additional Options |
| 40 | +<% $options.each |$key, $value| {-%> |
| 41 | +<%= $key -%>: <%= $value %> |
| 42 | +<% } -%> |
| 43 | +<% } -%> |
0 commit comments