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

This should be a != compare as if the node's puppet server is not the… #28

Merged
merged 2 commits into from
Dec 27, 2017

Conversation

dustinak
Copy link

@dustinak dustinak commented Dec 5, 2017

… CA server (this means folks have a different CA than master) then configure this resource to copy over the public certs from the fileserver endpoint created.

In my puppet env we have our puppet master separate from the CA server. With the code prior to this change, nothing happened on the master where the certificates class was present. When I changed this compare it did what I would expect. I don't think we need to have those certs synced if the puppet server is the same as the CA since it'll already have everything, yes?

Dustin Rice and others added 2 commits December 5, 2017 15:39
… CA server (this means folks have a different CA than master) then configure this resource to copy over the public certs from the fileserver endpoint created.
There is no reliable way to definitively identify the difference between compile masters and agent nodes. Therefore, we just sync to all non-CA nodes and let the user classify to avoid syncing to agents, if they so choose.
@binford2k
Copy link
Contributor

The name of the $servername variable is somewhat confusing. It's not the name of this server--it's the name of the server that compiled this catalog. In the original comparison, it's checking to see if the server that compiled the catalog is the CA, which would mean that the node getting the catalog was a compile master.

It's better to not attempt the logic than to do it in an unreliable fashion, so I just removed it. Thanks for the contribution!

@binford2k binford2k merged commit 23012b3 into puppetlabs:master Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants