forked from evolvingweb/puppet-apt
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathsource_deb822.epp
More file actions
34 lines (34 loc) · 1.01 KB
/
source_deb822.epp
File metadata and controls
34 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<%- |
String[1] $comment,
Enum['yes','no'] $enabled,
Array[String[1]] $types,
Array[String[1]] $uris,
Array[String[1]] $suites,
Array[String[1]] $components,
Optional[Array[String[1]]] $architectures = undef,
Optional[Enum['yes','no']] $allow_insecure = undef,
Optional[Enum['yes','no']] $repo_trusted = undef,
Optional[Enum['yes','no']] $check_valid_until = undef,
Optional[Variant[Stdlib::AbsolutePath,Array[String[1]]]] $signed_by = undef,
| -%>
# <%= $comment %>
Enabled: <%= $enabled %>
Types: <%= $types.join(' ') %>
URIs: <%= $uris.join(' ') %>
Suites: <%= $suites.join(' ') %>
Components: <%= $components.join(' ') %>
<% if $architectures { -%>
Architectures: <%= $architectures.join(' ') %>
<%- } -%>
<% if $allow_insecure { -%>
Allow-Insecure: <%= $allow_insecure %>
<% } -%>
<% if $repo_trusted { -%>
Trusted: <%= $repo_trusted %>
<% } -%>
<% if $check_valid_until { -%>
Check-Valid-Until: <%= $check_valid_until %>
<% } -%>
<% if $signed_by { -%>
Signed-By: <%= [$signed_by].flatten.join(' ') %>
<% } -%>