Merge "overcloud-deploy-post: detect keystone with undercloud's credentials"

This commit is contained in:
Zuul 2018-02-20 02:06:03 +00:00 committed by Gerrit Code Review
commit 966a9650a0
1 changed files with 6 additions and 5 deletions

View File

@ -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