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
11 The content of the SSL certificate (without Key) in PEM format.
13 SSLIntermediateCertificate:
16 The content of an SSL intermediate CA certificate in PEM format.
20 The content of the SSL Key in PEM format.
24 # Can be overriden by parameter_defaults if the user wants to try deploying
25 # this in a distro that doesn't support this path.
26 DeployedSSLCertificatePath:
27 default: '/etc/pki/tls/private/overcloud_endpoint.pem'
29 The filepath of the certificate as it will be stored in the controller.
32 # Passed in by the controller
37 description: ID of the controller node to apply this config to
42 type: OS::Heat::SoftwareConfig
47 - name: cert_chain_content
54 cat > ${cert_path} << EOF
57 chmod 0440 ${cert_path}
58 chown root:haproxy ${cert_path}
59 md5sum ${cert_path} > ${heat_outputs_path}.chain_md5sum
60 openssl x509 -noout -modulus -in ${cert_path} \
61 | openssl md5 | cut -c 10- \
62 > ${heat_outputs_path}.cert_modulus
63 openssl rsa -noout -modulus -in ${cert_path} \
64 | openssl md5 | cut -c 10- \
65 > ${heat_outputs_path}.key_modulus
67 ControllerTLSDeployment:
68 type: OS::Heat::SoftwareDeployment
70 name: ControllerTLSDeployment
71 config: {get_resource: ControllerTLSConfig}
72 server: {get_param: server}
74 cert_path: {get_param: DeployedSSLCertificatePath}
78 - - {get_param: SSLCertificate}
79 - {get_param: SSLIntermediateCertificate}
84 description: Deployment reference
85 value: {get_attr: [ControllerTLSDeployment, chain_md5sum]}
86 deployed_ssl_certificate_path:
87 description: The location that the TLS certificate was deployed to.
88 value: {get_param: DeployedSSLCertificatePath}
90 description: MD5 checksum of the Key SSL Modulus
91 value: {get_attr: [ControllerTLSDeployment, key_modulus]}
93 description: MD5 checksum of the Certificate SSL Modulus
94 value: {get_attr: [ControllerTLSDeployment, cert_modulus]}