aboutsummaryrefslogtreecommitdiff
path: root/docker/keystone
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@redhat.com>2014-10-08 21:53:13 -0400
committerLars Kellogg-Stedman <lars@redhat.com>2014-10-08 21:53:13 -0400
commit4fd63199f17463c534c77658d38d8ba6ef721355 (patch)
treeae34643eae6a9ac4e2948443b2bfba598885b802 /docker/keystone
parentcb05bb513bc5dbb2aa0a10a569ee5032515ea382 (diff)
downloadkolla-4fd63199f17463c534c77658d38d8ba6ef721355.tar.gz
kolla-4fd63199f17463c534c77658d38d8ba6ef721355.zip
update existing keystone objects
when booting the keystone container with an existing database, make sure to update credentials for admin user and replace existing keystone endpoint in the service catalog. Change-Id: I2c66d75210ef7ba5a96077eea15a8c564e99f662
Diffstat (limited to 'docker/keystone')
-rwxr-xr-xdocker/keystone/start.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/keystone/start.sh b/docker/keystone/start.sh
index b00667691..412f1c9ce 100755
--- a/docker/keystone/start.sh
+++ b/docker/keystone/start.sh
@@ -65,8 +65,11 @@ while ! curl -o /dev/null -s --fail ${SERVICE_ENDPOINT}; do
sleep 1;
done
-crux user-create -n admin -p "${KEYSTONE_ADMIN_PASSWORD}" -t admin -r admin
-crux endpoint-create -n keystone -t identity \
+crux user-create --update \
+ -n admin -p "${KEYSTONE_ADMIN_PASSWORD}" \
+ -t admin -r admin
+crux endpoint-create --remove-all \
+ -n keystone -t identity \
-I "${SERVICE_ENDPOINT_USER}" \
-A "${SERVICE_ENDPOINT_ADMIN}"