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

Add puppet8 certificate renewal endpoint. #905

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

jcpunk
Copy link
Contributor

@jcpunk jcpunk commented Dec 28, 2023

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the compatibility for older Puppet versions? Is this option available in Puppet 7?

Comment on lines +12 to +14
allow-auto-renewal: <%= @server_ca_allow_auto_renewal %>
# This value determines the lifetime of the cert if auto-renewal is enabled
auto-renewal-cert-ttl: <%= @server_ca_allow_auto_renewal_cert_ttl %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values are not known in the scope, so they don't get replaced. That causes the build to fail:
CI failures are related:

  Dec 28 19:30:38 centos9-64-puppet8.example.com puppetserver[2140]: /etc/puppetlabs/puppetserver/conf.d/ca.conf: 14: Expecting close brace } or a comma, got ':' (if you intended ':' to be part of a key or string value, try enclosing the key or value in double quotes)

You need to add them to puppet::server (and further) as well.

@jcpunk
Copy link
Contributor Author

jcpunk commented Jan 3, 2024

Hmmmm, that endpoint doesn't appear to work with puppet7. Is the puppetversion fact sufficient to confine this? That seems to be the agent version, but I don't see a great way to find the server version...

@jcpunk jcpunk changed the title Add puppet8 sertificate renewal endpoint. Add puppet8 certificate renewal endpoint. Jan 3, 2024
@ekohl
Copy link
Member

ekohl commented Jan 3, 2024

We used to have $puppet::server::real_puppetserver_version, but dropped it when it was no longer needed. I'd suggest to take it from 689d121#diff-7a36979cb6200e11647d047c711717f1662615c5e39375073ded103e83d90678L465-L473 and update it as needed.

@jcpunk jcpunk force-pushed the certificate_renewal_endpoint branch from ac3c426 to 62d076b Compare January 3, 2024 17:20
@jcpunk jcpunk force-pushed the certificate_renewal_endpoint branch 3 times, most recently from 0ff35a6 to d5b736d Compare January 3, 2024 20:46
@jcpunk jcpunk force-pushed the certificate_renewal_endpoint branch from d5b736d to 52d57e5 Compare January 3, 2024 21:18
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
@ekohl ekohl merged commit f14985e into theforeman:master Feb 19, 2024
25 checks passed
@jcpunk jcpunk deleted the certificate_renewal_endpoint branch February 19, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants