Merge "Only generate Octavia certs on stack create" into stable/stein

This commit is contained in:
Zuul 2019-08-30 09:35:43 +00:00 committed by Gerrit Code Review
commit 193d32413c
1 changed files with 15 additions and 1 deletions

View File

@ -34,6 +34,13 @@ parameters:
description: Mapping of service endpoint -> protocol. Typically set description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry. via parameter_defaults in the resource registry.
type: json type: json
StackAction:
type: string
description: >
Heat action on performed top-level stack. Note StackUpdateType is
set to UPGRADE when a major-version upgrade is in progress.
constraints:
- allowed_values: ['CREATE', 'UPDATE']
OctaviaPostWorkflowName: OctaviaPostWorkflowName:
description: Mistral workflow name for octavia configuration steps description: Mistral workflow name for octavia configuration steps
once the overcloud is ready. once the overcloud is ready.
@ -187,6 +194,13 @@ conditions:
- raw - raw
- get_param: NovaEnableRbdBackend - get_param: NovaEnableRbdBackend
generate_certs:
and:
- get_param: OctaviaGenerateCerts
- equals:
- get_param: StackAction
- CREATE
resources: resources:
{% if not octavia_standalone %} {% if not octavia_standalone %}
default_key_pair: default_key_pair:
@ -226,7 +240,7 @@ resources:
server_certs_key_passphrase: {get_param: OctaviaServerCertsKeyPassphrase} server_certs_key_passphrase: {get_param: OctaviaServerCertsKeyPassphrase}
ca_passphrase: { get_param: OctaviaCaKeyPassphrase } ca_passphrase: { get_param: OctaviaCaKeyPassphrase }
client_cert_path: { get_param: OctaviaClientCertFile } client_cert_path: { get_param: OctaviaClientCertFile }
generate_certs: { get_param: OctaviaGenerateCerts } generate_certs: {if: [generate_certs, true, false]}
mgmt_port_dev: { get_param: OctaviaMgmtPortDevName } mgmt_port_dev: { get_param: OctaviaMgmtPortDevName }
os_password: { get_param: AdminPassword } os_password: { get_param: AdminPassword }
os_project_name: 'admin' os_project_name: 'admin'