<%# # 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