-
Notifications
You must be signed in to change notification settings - Fork 130
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
Ensure proxy register runs before puppetserver service #852
Conversation
In case there runs puppetserver on the same node *and* foreman is used as an ENC, the registration needs to happen before the smart proxy is configured, otherwise the ENC script cannot authenticate itself to foreman.
CI fails on AL 8 and Ubuntu 20.04 since we dropped those from nightly. I saw the same thing in puppet-foreman and we'll need to drop them. In the mean time I'll merge this manually. |
Yeah, no :) This breaks when you try to re-generate all certs, as it tries to register the proxy before puppetserver has created a CA:
|
Where are you seeing this problem? Do you have a bit more context? Maybe we can add a conditional to the resource collector. |
The problem is when we run I guess calling |
No, that's not it. As the CA is still fine:
But what puts the copy into /etc/puppetlabs/puppet/ssl/certs/ and generates the client stuff? 🤔 |
In case there runs puppetserver on the same node and foreman is used as an ENC, the registration needs to happen before the smart proxy is configured, otherwise the ENC script cannot authenticate itself to foreman.