commit 60a0f973fdfc9253fcdb8a335668d89f203a5d27
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/629961 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=60a0f973fdf c9253fcdb8a3356 68d89f203a5d27
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 60a0f973fdfc925 3fcdb8a335668d8 9f203a5d27
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