Merge "overcloud-deploy-post: detect keystone with undercloud's credentials"
This commit is contained in:
commit
966a9650a0
|
@ -35,16 +35,17 @@ $(openstack stack output show overcloud PublicVip \
|
|||
## END OVERCLOUD HOSTS #nodocs
|
||||
EOF
|
||||
|
||||
## * Source in the overcloud credentials.
|
||||
## ::
|
||||
|
||||
. {{ working_dir }}/overcloudrc
|
||||
|
||||
## * Create the `heat_stack_owner` role if it doesn't already exist.
|
||||
## ::
|
||||
|
||||
if openstack stack output show overcloud EnabledServices \
|
||||
-f value -c output_value | grep -q keystone; then
|
||||
|
||||
## * Source in the overcloud credentials.
|
||||
## ::
|
||||
|
||||
. {{ working_dir }}/overcloudrc
|
||||
|
||||
if ! openstack role show heat_stack_owner > /dev/null 2>&1; then
|
||||
openstack role create heat_stack_owner
|
||||
openstack role add --project admin --user admin heat_stack_owner
|
||||
|
|
Loading…
Reference in New Issue