Skip to content

Conversation

@markllama
Copy link
Contributor

Orignally from @wrichter -

This allows you to enter a trusted ca cert to the openshift nodes and bastion host. This solves the issue https://bugzilla.redhat.com/show_bug.cgi?id=1419182 for me.

To use it, simply add a another parameter to your environment file as such:

trusted_ca_cert: |
-----BEGIN CERTIFICATE-----
<... CERT CONTENT ...>
-----END CERTIFICATE-----

Copy link
Contributor

@tomassedovic tomassedovic left a comment

Choose a reason for hiding this comment

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

Looks good, there's a couple of things I'd like to change but I've tested it and it works swell.


if [ -n "$CA_CERT" ] ; then
update-ca-trust enable
cat >/etc/pki/ca-trust/source/anchors/ca.crt <<EOF
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use cloud-init and the included_files resource to put the file in place?

openshift.yaml Outdated
description: Extra parameters for openshift-ansible as a JSON string
default: ""

osp_ca_cert:
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be used for more than just the openstack ssl cert -- for example the ldap certificate. Can we rename it to ca_cert or possibly even ca_certs? It works fine if you put more than one certificate in.


osp_ca_cert:
type: string
description: Certificate Authority Certificate to be added to trust chain
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we mention that this supports multiple certificates?

Added both DNS and cacert variables
@tomassedovic tomassedovic merged commit a17b02b into redhat-openstack:master Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants