undercloud_post: override stackrc

When upgrading to a containerized undercloud, the stackrc needs to be
overriden so we don't rely on hiera CLI anymore to get the admin
password.

Change-Id: Ie2579bf83d709838557c56d952e61656b84acf31
This commit is contained in:
Emilien Macchi 2018-03-08 20:58:15 +01:00
parent b6c9134c83
commit 0acc40d36b
1 changed files with 6 additions and 8 deletions

View File

@ -8,7 +8,6 @@ USERNAME=`ls -ld $HOMEDIR | awk {'print $3'}`
GROUPNAME=`ls -ld $HOMEDIR | awk {'print $4'}` GROUPNAME=`ls -ld $HOMEDIR | awk {'print $4'}`
# WRITE OUT STACKRC # WRITE OUT STACKRC
if [ ! -e $HOMEDIR/stackrc ]; then
touch $HOMEDIR/stackrc touch $HOMEDIR/stackrc
chmod 0600 $HOMEDIR/stackrc chmod 0600 $HOMEDIR/stackrc
@ -44,7 +43,6 @@ cat >> $HOMEDIR/stackrc <<-EOF_CAT
export PYTHONWARNINGS="ignore:Certificate has no, ignore:A true SSLContext object is not available" export PYTHONWARNINGS="ignore:Certificate has no, ignore:A true SSLContext object is not available"
EOF_CAT EOF_CAT
fi fi
fi
chown "$USERNAME:$GROUPNAME" "$HOMEDIR/stackrc" chown "$USERNAME:$GROUPNAME" "$HOMEDIR/stackrc"