feat: initial commit
This commit is contained in:
commit
38f495e3f4
457 changed files with 40577 additions and 0 deletions
1
environments/production/thirdparty/apt/templates/_conf_header.epp
vendored
Normal file
1
environments/production/thirdparty/apt/templates/_conf_header.epp
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
// This file is managed by Puppet. DO NOT EDIT.
|
1
environments/production/thirdparty/apt/templates/_header.epp
vendored
Normal file
1
environments/production/thirdparty/apt/templates/_header.epp
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
# This file is managed by Puppet. DO NOT EDIT.
|
8
environments/production/thirdparty/apt/templates/add-apt-repository.sh.epp
vendored
Normal file
8
environments/production/thirdparty/apt/templates/add-apt-repository.sh.epp
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<%- | Array $command, String $sources_list_d_path, String $sources_list_d_filename | -%>
|
||||
|
||||
<%= $command.join(' ') %>
|
||||
|
||||
if [ $? -gt 0 ]; then
|
||||
rm <%= $sources_list_d_path %>/<%= $sources_list_d_filename %>
|
||||
exit 1
|
||||
fi
|
6
environments/production/thirdparty/apt/templates/auth_conf.epp
vendored
Normal file
6
environments/production/thirdparty/apt/templates/auth_conf.epp
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
// This file is managed by Puppet. DO NOT EDIT.
|
||||
<% if $auth_conf_entries != [] { -%>
|
||||
<% $auth_conf_entries.each | $auth_conf_entry | { -%>
|
||||
machine <%= $auth_conf_entry['machine'] %> login <%= $auth_conf_entry['login'] %> password <%= $auth_conf_entry['password'] %>
|
||||
<% } -%>
|
||||
<% } -%>
|
26
environments/production/thirdparty/apt/templates/pin.pref.epp
vendored
Normal file
26
environments/production/thirdparty/apt/templates/pin.pref.epp
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
<%- | $name, $pin_release, $release, $codename, $release_version, $component, $originator, $label, $version, $origin, $explanation, $packages_string, $priority | -%>
|
||||
<%-
|
||||
$pin =
|
||||
if $pin_release != '' {
|
||||
$options = [
|
||||
unless $release =~ Undef { "a=${release}" },
|
||||
unless $codename =~ Undef { "n=${codename}" },
|
||||
unless $release_version =~ Undef { "v=${release_version}"},
|
||||
unless $component =~ Undef { "c=${component}" },
|
||||
unless $originator =~ Undef { "o=${originator}" },
|
||||
unless $label =~ Undef { "l=${label}" },
|
||||
].filter |$x| { $x != undef }
|
||||
"release ${options.join(', ')}" }
|
||||
|
||||
elsif $version and "${version}".length > 0 {
|
||||
"version ${version}" }
|
||||
elsif $origin and $origin.length > 0 {
|
||||
"origin ${origin}" }
|
||||
else {
|
||||
"release a=${name}" #Default value
|
||||
}
|
||||
-%>
|
||||
Explanation: <%= $explanation %>
|
||||
Package: <%= $packages_string %>
|
||||
Pin: <%= $pin %>
|
||||
Pin-Priority: <%= $priority %>
|
10
environments/production/thirdparty/apt/templates/proxy.epp
vendored
Normal file
10
environments/production/thirdparty/apt/templates/proxy.epp
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
<%- | Hash $proxies | -%>
|
||||
<% $proxies['perhost'].each |$proxy| { -%>
|
||||
Acquire::<%= $proxy['scheme'] %>::proxy::<%= $proxy['scope'] %> "<%= $proxy['target'] %>";
|
||||
<% } -%>
|
||||
Acquire::http::proxy "http://<%= $proxies['host'] %>:<%= $proxies['port'] %>/";
|
||||
<%- if $proxies['https'] { %>
|
||||
Acquire::https::proxy "https://<%= $proxies['host'] %>:<%= $proxies['port'] %>/";
|
||||
<%- } elsif $proxies['direct'] { -%>
|
||||
Acquire::https::proxy "DIRECT";
|
||||
<%- } -%>
|
8
environments/production/thirdparty/apt/templates/source.list.epp
vendored
Normal file
8
environments/production/thirdparty/apt/templates/source.list.epp
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<%- | String $comment, Hash $includes, Hash $options, $location, String $components | -%>
|
||||
# <%= $comment %>
|
||||
<%- if $includes['deb'] { -%>
|
||||
deb <% if !$options.empty() { -%>[<%= $options.map |$key, $value| { if !$value.empty() { "${key}=${value}" } }.join(" ") %>] <% } -%> <%= $location %> <%= $components %>
|
||||
<%- } -%>
|
||||
<%- if $includes['src'] { -%>
|
||||
deb-src <% if !$options.empty() { -%>[<%= $options.map |$key, $value| { if !$value.empty() { "${key}=${value}" } }.join(" ") %>] <% } -%> <%= $location %> <%= $components %>
|
||||
<%- } -%>
|
36
environments/production/thirdparty/apt/templates/source_deb822.epp
vendored
Normal file
36
environments/production/thirdparty/apt/templates/source_deb822.epp
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
<% | String $comment,
|
||||
Enum['yes','no'] $enabled,
|
||||
Array[String] $types,
|
||||
Array[String] $uris,
|
||||
Array[String] $suites,
|
||||
Array[String] $components,
|
||||
Optional[Array] $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]]] $signed_by = undef,
|
||||
| -%>
|
||||
# <%= $comment %>
|
||||
Enabled: <%= $enabled %>
|
||||
Types: <% $types.each |String $type| { -%> <%= $type %> <% } %>
|
||||
URIs: <% $uris.each | String $uri | { -%> <%= $uri %> <% } %>
|
||||
Suites: <% $suites.each | String $suite | { -%> <%= $suite %> <% } %>
|
||||
Components: <% $components.each | String $component | { -%> <%= $component %> <% } %>
|
||||
<% if $architectures { -%>
|
||||
Architectures:<% $architectures.each | String $arch | { %> <%= $arch %><% } %>
|
||||
<%- } -%>
|
||||
<% 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: <% if type($signed_by) =~ Type[Array] { -%><%- $signed_by.each |String $keyring| { -%><%= $keyring %> <% } -%>
|
||||
<%- } -%>
|
||||
<%- elsif type($signed_by) =~ Type[String] { -%>
|
||||
<%= $signed_by -%>
|
||||
<%- }} %>
|
Loading…
Add table
Add a link
Reference in a new issue