Add AdminPassword and KeystoneRegion stack outputs

AdminPassword and KeystoneRegion need to be added as a stack outputs so
that they are saved in the working directory for stack outputs after
using ephemeral Heat to create the stack.

The code to create the rc params to create the overcloudrc file(s)
(tripleoclient.utils.get_rc_params) can then create the overcloudrc
using only the working directory. No reference to the stack object or a
running instance of Heat to query the stack would be required.

Change-Id: Idaef781163c6c8f5928d93d9bbc1aa7b0dee6fd6
Signed-off-by: James Slagle <jslagle@redhat.com>
This commit is contained in:
James Slagle 2022-04-28 08:45:43 -04:00
parent 991ec2f68c
commit 4d91ad67fc
1 changed files with 16 additions and 0 deletions

View File

@ -412,6 +412,16 @@ parameters:
description: The name of the stack/plan.
type: string
AdminPassword:
description: The password for the keystone admin account, used for monitoring, querying neutron etc.
type: string
hidden: true
KeystoneRegion:
type: string
default: 'regionOne'
description: Keystone region for endpoint
{% for role in roles %}
{%- if role.deprecated_param_scheduler_hints is defined or role.deprecated_param_extraconfig is defined %}
{%- if not parameter_groups_defined|default(false) %}
@ -1370,3 +1380,9 @@ outputs:
value:
roles_data: {{ roles }}
networks_data: {{ networks }}
AdminPassword:
description: The password for the keystone admin account, used for monitoring, querying neutron etc.
value: {get_param: AdminPassword}
KeystoneRegion:
description: Keystone region for endpoint
value: {get_param: KeystoneRegion}