commit adfca27bd0d3ccdea8b57541a34c3cd13a7e1bb1
Author: Harald Jensås <email address hidden>
Date: Thu Jan 10 12:22:46 2019 +0100
Filter apache_certificates_specs if hostname is empty
Not all roles have all networks, when creating certificates
we need to filter out certificate specs where the hiera
lookup returns 'nil'.
Previously we created noop resources with fallback to the
ctlplane network for all networks defined in network data.
So the hiera lookup returned a hostname for all networks
no matter if the roles data included that network. This is
no longer the case, so we need to filter.
Bonus, we no longer create certificates that are'nt actually
used.
Change-Id: I651919488cb68b0b9878b4e21ab376bfc6e3f0fe
Closes-Bug: #1811207
(cherry picked from commit a3aeb0b7faa6a817d7336d7fef86dd96bcf12731)
Reviewed: https:/ /review. openstack. org/629962 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=adfca27bd0d 3ccdea8b57541a3 4c3cd13a7e1bb1
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit adfca27bd0d3ccd ea8b57541a34c3c d13a7e1bb1
Author: Harald Jensås <email address hidden>
Date: Thu Jan 10 12:22:46 2019 +0100
Filter apache_ certificates_ specs if hostname is empty
Not all roles have all networks, when creating certificates
we need to filter out certificate specs where the hiera
lookup returns 'nil'.
Previously we created noop resources with fallback to the
ctlplane network for all networks defined in network data.
So the hiera lookup returned a hostname for all networks
no matter if the roles data included that network. This is
no longer the case, so we need to filter.
Bonus, we no longer create certificates that are'nt actually
used.
Change-Id: I651919488cb68b 0b9878b4e21ab37 6bfc6e3f0fe 7d7336d7fef86dd 96bcf12731)
Closes-Bug: #1811207
(cherry picked from commit a3aeb0b7faa6a81