| Adding a new comment to truly show what happens in the various scenarios. Certname setting not used (certname, hostcert, and hostprivkey config settings use FQDN as expected)... <noformat> [root ~]# cat /etc/puppetlabs/puppet/puppet.conf [main] server = <servername fqdn>
- 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[agent]
noop = true runinterval = 24h digest_algorithm = sha256 splay = true
- puppet config print certname hostcert hostprivkey
certname = abc123.example.net hostcert = /etc/puppetlabs/puppet/ssl/certs/abc123.example.net.pem hostprivkey = /etc/puppetlabs/puppet/ssl/private_keys/abc123.example.net.pem <noformat>
Certname setting in agent section (certname, hostcert, and hostprivkey config settings still using FQDN but requesting new cert honors the certname setting)... <noformat> [root ~]# vi /etc/puppetlabs/puppet/puppet.conf [root ~]# cat /etc/puppetlabs/puppet/puppet.conf [main] server = <servername fqdn>
- 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[agent]
certname = foo.bar noop = true runinterval = 24h digest_algorithm = sha256 splay = true
[root ~]# puppet config print certname hostcert hostprivkey certname = abc123.example.net hostcert = /etc/puppetlabs/puppet/ssl/certs/abc123.example.net.pem hostprivkey = /etc/puppetlabs/puppet/ssl/private_keys/abc123.example.net.pem [root ~]# puppet agent -t Info: Creating a new SSL key for foo.bar Info: Caching certificate for ca ... ... <noformat> Certname settign in main section (certname, hostcert, and hostprivkey config settings as well as new cert request honor the certname setting)... <noformat> [root ~]# vi /etc/puppetlabs/puppet/puppet.conf [root ~]# cat /etc/puppetlabs/puppet/puppet.conf [main] certname = foo.bar server = <servername fqdn>
- 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[agent]
noop = true runinterval = 24h digest_algorithm = sha256 splay = true
[root ~]# puppet config print certname hostcert hostprivkey certname = foo.bar hostcert = /etc/puppetlabs/puppet/ssl/certs/foo.bar.pem hostprivkey = /etc/puppetlabs/puppet/ssl/private_keys/foo.bar.pem [root ~]# puppet agent -t Info: Creating a new SSL key for foo.bar Info: Caching certificate for ca ... ... <noformat> |