Skip to content

Commit

Permalink
Merge branch 'release/1.19.0' into fix/spassword_migration_script_ant…
Browse files Browse the repository at this point in the history
…elope
  • Loading branch information
AlvaroVega authored Dec 16, 2024
2 parents 46eca67 + 08ecd7d commit 0dd693c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1.19.1

Fix: migration spassword script (related with keystone sqlalchemy support) to allow bootstrap from empty database (#240, #243)
ADD: allow to define pep password using KEYSTONE_PEP_PASSWORD env var (#247)

1.19.0

Expand Down
5 changes: 4 additions & 1 deletion docker/postlaunchconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ if [ "$MYSQL_PASSWORD_ARG" == "-mysql_pwd" ]; then
MYSQL_ROOT_PASSWORD="$MYSQL_PASSWORD_VALUE"
fi

if [ "${KEYSTONE_PEP_PASSWORD}" == "" ]; then
KEYSTONE_PEP_PASSWORD=$KEYSTONE_ADMIN_PASSWORD
fi

[[ "${SPASSWORD_ENABLED}" == "" ]] && export SPASSWORD_ENABLED=True
[[ "${SPASSWORD_PWD_MAX_TRIES}" == "" ]] && export SPASSWORD_PWD_MAX_TRIES=5
Expand Down Expand Up @@ -255,7 +258,7 @@ ID_ADMIN_DOMAIN=`openstack domain list | grep "admin_domain" | awk '{print $2}'`
echo "ID_ADMIN_DOMAIN: $ID_ADMIN_DOMAIN"
[[ "${ID_ADMIN_DOMAIN}" == null ]] && exit 0

openstack user create --domain admin_domain --password $KEYSTONE_ADMIN_PASSWORD pep
openstack user create --domain admin_domain --password $KEYSTONE_PEP_PASSWORD pep
ID_CLOUD_SERVICE=`openstack user list --domain admin_domain | grep "pep" | awk '{print $2}'`
echo "ID_CLOUD_SERVICE: $ID_CLOUD_SERVICE"

Expand Down

0 comments on commit 0dd693c

Please sign in to comment.