Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set certnames to target names #72

Merged
merged 4 commits into from Mar 18, 2020
Merged

Set certnames to target names #72

merged 4 commits into from Mar 18, 2020

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Mar 17, 2020

To support the use case wherein the certname of a system should be set to something besides the hostname (such as when the DNS A records are friendly names, but the system hostname(s) are not), do not leave certname settings up to Puppet's defaults.

Instead, at install time set the certnames of each server in the infrastructure to the target name of the server.

This will require a little bit of creative decision making with regards to the precheck validator, which used to insist that hostname == target name, and would fail if there was a mismatch.

This is because the curl|bash installer overrides certname and server
settings when installing. In the event a server needs to use a certname
which is NOT the same as the system's configured hostname, the certname
must be set manually at agent install time.
The only way to set the certname right now for hosts configured with the
PE installer is to pre-stage a puppet.conf file with the certname value
set. This commit does that for PE installer hosts in order to allow all
infrastructure nodes to have their certnames set for them, based on the
Bolt target name.

If the target name is different from the IP address
used to reach the host, then an inventory file should be used.
@reidmv reidmv changed the title Set explicit certname when using curl|bash install Set certnames to target names Mar 17, 2020
This commit removes the hard check that target names be equal to
hostnames. This commit is in support of other changes added to allow the
use of certnames which are not the hostname.
@reidmv reidmv merged commit e4b02a4 into master Mar 18, 2020
@reidmv reidmv deleted the preserve-certnames branch March 18, 2020 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant