tripleo-heat-templates/deployment/haproxy
Ade Lee a65df66fb6 Always update the local certmonger ca cert
The local certmonger cert will renew after half its lifetime, which will
be after 6 months by default.  The current code would extract the CA cert
to a PEM file (and trust it), only if the cert in the existing PEM file
was expired.

But this means that the certmonger local cert could be renewed after six
months and not be replaced in the PEM file until the existing cert
expired at the end of the year.  If certs are issued in this time, they
will not be trusted and the update will fail.

This patch removes this condition, so that the extracted and trusted cert
always matches what is in the PEM file, and what is trusted.

Note, this only place this occurs is on the undercloud - because this is
where we could use the certmonger local cert.  We assume that the haproxy
cert will be re-issued in an update.

This change has been added to puppet-tripleo for master and all previous
releases, but in master now, we do this directly in tht as we use
ansible to get the system certs.

Change-Id: Ia0ad0ac6d7a09858b56dcb419a3bec17b63779a4
2021-04-06 13:51:41 -04:00
..
haproxy-container-puppet.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30
haproxy-edge-container-puppet.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30
haproxy-internal-tls-certmonger.j2.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30
haproxy-pacemaker-puppet.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30
haproxy-public-tls-certmonger.yaml Always update the local certmonger ca cert 2021-04-06 13:51:41 -04:00
haproxy-public-tls-inject.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30