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:
parent
b6c9134c83
commit
0acc40d36b
|
@ -8,7 +8,6 @@ USERNAME=`ls -ld $HOMEDIR | awk {'print $3'}`
|
|||
GROUPNAME=`ls -ld $HOMEDIR | awk {'print $4'}`
|
||||
|
||||
# WRITE OUT STACKRC
|
||||
if [ ! -e $HOMEDIR/stackrc ]; then
|
||||
touch $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"
|
||||
EOF_CAT
|
||||
fi
|
||||
fi
|
||||
|
||||
chown "$USERNAME:$GROUPNAME" "$HOMEDIR/stackrc"
|
||||
|
||||
|
|
Loading…
Reference in New Issue