diff options
Diffstat (limited to 'onboarding/puppet.conf.epp')
| -rw-r--r-- | onboarding/puppet.conf.epp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/onboarding/puppet.conf.epp b/onboarding/puppet.conf.epp new file mode 100644 index 0000000..0905f90 --- /dev/null +++ b/onboarding/puppet.conf.epp @@ -0,0 +1,47 @@ +<%# +# 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. +-%> +<% +# If you want to determine the certname manually, do it here. +# If this remains undefined or empty, facts.networking.fqdn will be used. +$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. +$my_dns_alt_names = '' +# The server you intend to use. Has to be set. +$my_server = 'puppet.example.com' +-%> +# 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 |
