Make undercloud user-provided cert take precedence
The user-provided cert should take precedence over the user-provided certificate. Closes-Bug: #1755497 Change-Id: I336fa7df39f6f20f50879a42e08e018249323829
This commit is contained in:
parent
c5a8dbf267
commit
ff7200630d
|
@ -429,11 +429,7 @@ def prepare_undercloud_deploy(upgrade=False, no_validations=False,
|
|||
env_data['BarbicanSimpleCryptoGlobalDefault'] = True
|
||||
env_data['SwiftEncryptionEnabled'] = True
|
||||
|
||||
if CONF.get('generate_service_certificate'):
|
||||
deploy_args += ['-e', os.path.join(
|
||||
tht_templates,
|
||||
"environments/public-tls-undercloud.yaml")]
|
||||
elif CONF.get('undercloud_service_certificate'):
|
||||
if CONF.get('undercloud_service_certificate'):
|
||||
enable_tls_yaml_path = os.path.join(tht_templates,
|
||||
"environments/ssl/enable-tls.yaml")
|
||||
env_data.update(
|
||||
|
@ -446,6 +442,10 @@ def prepare_undercloud_deploy(upgrade=False, no_validations=False,
|
|||
'undercloud-haproxy.yaml'),
|
||||
'-e', os.path.join(tht_templates, 'environments/services/'
|
||||
'undercloud-keepalived.yaml')]
|
||||
elif CONF.get('generate_service_certificate'):
|
||||
deploy_args += ['-e', os.path.join(
|
||||
tht_templates,
|
||||
"environments/public-tls-undercloud.yaml")]
|
||||
else:
|
||||
deploy_args += ['-e', os.path.join(
|
||||
tht_templates,
|
||||
|
|
Loading…
Reference in New Issue