644b45f238
We fixed the name that is used to be standalone but didn't change the post script. We document the StandaloneHomeDir so we need to address the template. Change-Id: I45f1dbb5c7197b80961ead53c4e5b1403ed4e6db Closes-Bug: #1788413
91 lines
2.6 KiB
YAML
91 lines
2.6 KiB
YAML
heat_template_version: rocky
|
|
|
|
description: >
|
|
Post-deployment for the TripleO standalone deployment
|
|
|
|
parameters:
|
|
servers:
|
|
type: json
|
|
DeployedServerPortMap:
|
|
default: {}
|
|
type: json
|
|
StandaloneHomeDir:
|
|
description: The HOME directory where the stackrc and ssh credentials for the Standalone will be installed. Set to /home/<user> to customize the location.
|
|
type: string
|
|
default: '/root'
|
|
AdminPassword: #supplied by tripleo-undercloud-passwords.yaml
|
|
type: string
|
|
description: The password for the keystone admin account, used for monitoring, querying neutron etc.
|
|
hidden: True
|
|
SSLCertificate:
|
|
description: >
|
|
The content of the SSL certificate (without Key) in PEM format.
|
|
type: string
|
|
default: ""
|
|
hidden: True
|
|
PublicSSLCertificateAutogenerated:
|
|
default: false
|
|
description: >
|
|
Whether the public SSL certificate was autogenerated or not.
|
|
type: boolean
|
|
KeystoneRegion:
|
|
type: string
|
|
default: 'regionOne'
|
|
description: Keystone region for endpoint
|
|
StandaloneCloudName:
|
|
type: string
|
|
default: 'standalone'
|
|
description: Cloud name for the clouds.yaml
|
|
|
|
conditions:
|
|
|
|
tls_enabled:
|
|
or:
|
|
- not:
|
|
equals:
|
|
- {get_param: SSLCertificate}
|
|
- ""
|
|
- equals:
|
|
- {get_param: PublicSSLCertificateAutogenerated}
|
|
- true
|
|
|
|
resources:
|
|
|
|
StandalonePostConfig:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
group: script
|
|
inputs:
|
|
- name: admin_password
|
|
- name: auth_url
|
|
- name: cloud_name
|
|
- name: homedir
|
|
- name: region_name
|
|
config: {get_file: ./standalone_post.sh}
|
|
|
|
StandalonePostDeployment:
|
|
type: OS::Heat::SoftwareDeployments
|
|
properties:
|
|
name: StandalonePostDeployment
|
|
servers: {get_param: servers}
|
|
config: {get_resource: StandalonePostConfig}
|
|
input_values:
|
|
admin_password: {get_param: AdminPassword}
|
|
# if SSL is enabled we use the public virtual ip as the stackrc endpoint
|
|
auth_url:
|
|
if:
|
|
- 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: /
|
|
cloud_name: {get_param: StandaloneCloudName}
|
|
homedir: {get_param: StandaloneHomeDir}
|
|
region_name: {get_param: KeystoneRegion}
|