1 heat_template_version: 2015-04-30
4 This is a template which will build the TLS Certificates necessary
5 for the load balancer using the given parameters.
8 # Can be overriden via parameter_defaults in the environment
12 The content of the SSL certificate (without Key) in PEM format.
14 SSLIntermediateCertificate:
17 The content of an SSL intermediate CA certificate in PEM format.
22 The content of the SSL Key in PEM format.
26 # Can be overriden by parameter_defaults if the user wants to try deploying
27 # this in a distro that doesn't support this path.
28 DeployedSSLCertificatePath:
29 default: '/etc/pki/tls/private/overcloud_endpoint.pem'
31 The filepath of the certificate as it will be stored in the controller.
34 # Passed in by the controller
39 description: ID of the controller node to apply this config to
44 type: OS::Heat::SoftwareConfig
49 - name: cert_chain_content
56 cat << EOF | tee ${cert_path} > /dev/null
59 chmod 0440 ${cert_path}
60 chown root:haproxy ${cert_path}
61 md5sum ${cert_path} > ${heat_outputs_path}.chain_md5sum
62 openssl x509 -noout -modulus -in ${cert_path} \
63 | openssl md5 | cut -c 10- \
64 > ${heat_outputs_path}.cert_modulus
65 openssl rsa -noout -modulus -in ${cert_path} \
66 | openssl md5 | cut -c 10- \
67 > ${heat_outputs_path}.key_modulus
69 ControllerTLSDeployment:
70 type: OS::Heat::SoftwareDeployment
72 config: {get_resource: ControllerTLSConfig}
73 server: {get_param: server}
75 cert_path: {get_param: DeployedSSLCertificatePath}
79 - - {get_param: SSLCertificate}
80 - {get_param: SSLIntermediateCertificate}
85 description: Deployment reference
86 value: {get_attr: [ControllerTLSDeployment, chain_md5sum]}
87 deployed_ssl_certificate_path:
88 description: The location that the TLS certificate was deployed to.
89 value: {get_param: DeployedSSLCertificatePath}
91 description: MD5 checksum of the Key SSL Modulus
92 value: {get_attr: [ControllerTLSDeployment, key_modulus]}
94 description: MD5 checksum of the Certificate SSL Modulus
95 value: {get_attr: [ControllerTLSDeployment, cert_modulus]}