Merge "Undercloud: fix stackrc TLS URL detection"

This commit is contained in:
Zuul 2018-02-15 05:43:46 +00:00 committed by Gerrit Code Review
commit 321c3fe6f7
1 changed files with 21 additions and 7 deletions

View File

@ -38,6 +38,11 @@ parameters:
type: string
default: ""
hidden: True
PublicSSLCertificateAutogenerated:
default: false
description: >
Whether the public SSL certificate was autogenerated or not.
type: boolean
SnmpdReadonlyUserPassword:
description: The user password for SNMPd with readonly rights running on all Overcloud nodes
type: string
@ -45,7 +50,16 @@ parameters:
conditions:
ssl_disabled: {equals : [{get_param: SSLCertificate}, ""]}
tls_enabled:
or:
- not:
equals:
- {get_param: SSLCertificate}
- ""
- equals:
- {get_param: PublicSSLCertificateAutogenerated}
- true
resources:
@ -86,14 +100,14 @@ resources:
# if SSL is enabled we use the public virtual ip as the stackrc endpoint
auth_url:
if:
- ssl_disabled
- make_url:
scheme: http
host: {get_param: [DeployedServerPortMap, 'control_virtual_ip', fixed_ips, 0, ip_address]}
port: 5000
path: /
- tls_enabled
- make_url:
scheme: https
host: {get_param: [DeployedServerPortMap, 'public_virtual_ip', fixed_ips, 0, ip_address]}
port: 13000
path: /
- make_url:
scheme: http
host: {get_param: [DeployedServerPortMap, 'control_virtual_ip', fixed_ips, 0, ip_address]}
port: 5000
path: /