git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/onboarding/puppet.conf.epp
blob: fc2bf7336013c3f4d0e523b917868143fdef5d59 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<%#
# vim:syntax=embeddedpuppet
# TO BE USED WITH PUPPET-AGENT.PP IN THE SAME FOLDER,
# for manually kicking off the agent deployment
# Set my_certname for manually determining the node's certname, and/or
# my_dns_alt_names for additional SANs.
# Bear in mind this should be regarded as the absolute bare minimum
# for a working and correct certificate and first run, and OpenVox
# (formerly Puppet) should take over managing this file after the
# first run.
-%>
<%
# The server you intend to use. REQUIRED SETTING.
$my_server = 'puppet.example.com'
# If you want to determine the certname manually, do it here.
# If this remains undefined or empty, facts.networking.fqdn will be used
# (so default if unset: FQDN).
$my_certname = ''
# This should be a comma separated list of values - it's the same in
# puppet.conf. puppet.conf will not bear the directive if this is empty.
# (If left empty, NO SANs will be added to the certificate even later on.)
$my_dns_alt_names = ''
-%>
# vim:syntax=dosini
# File manually created with Puppet.
# This file can be used to override the default puppet settings.
# See the following links for more details on what settings are available:
# - https://puppet.com/docs/puppet/latest/config_important_settings.html
# - https://puppet.com/docs/puppet/latest/config_about_settings.html
# - https://puppet.com/docs/puppet/latest/config_file_main.html
# - https://puppet.com/docs/puppet/latest/configuration.html
<%
$res_certname = $my_certname ? {
  String[1] => $my_certname,
  default   => $facts['networking']['fqdn'],
}
$res_alt_names = $my_dns_alt_names ? {
  String[1] => true,
  default   => false,
}
-%>
[main]
certname=<%= $res_certname %>
<% if $res_alt_names { -%>
dns_alt_names=<%= $my_dns_alt_names %>
<% } %>
[agent]
server=<%= $my_server %>
runinterval=30m