From b766695f18d5f235f1a2f0db88a41dce9db674d1 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Mon, 14 Dec 2015 15:10:44 +0800 Subject: Move the admin account creation to register.yml Create the admin project, user, role and keystone service info by using ansible task rather than shell script Closes-Bug: #1526251 Change-Id: Ieee215b9de1618b3d31f3d1a766a9d0ebafdee4d --- docker/keystone/extend_start.sh | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'docker') diff --git a/docker/keystone/extend_start.sh b/docker/keystone/extend_start.sh index c7c8ad83d..c13ebfa0b 100644 --- a/docker/keystone/extend_start.sh +++ b/docker/keystone/extend_start.sh @@ -17,20 +17,6 @@ fi # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then sudo -H -u keystone keystone-manage db_sync - # Start the api to set initial endpoint and users with the admin_token - $CMD - sleep 5 - - openstack service create --name keystone --description "OpenStack Identity" identity - openstack endpoint create --region "${REGION_NAME}" \ - --publicurl "${PUBLIC_URL}" \ - --internalurl "${INTERNAL_URL}" \ - --adminurl "${ADMIN_URL}" \ - identity - openstack project create --description "Admin Project" admin - openstack user create --password "${KEYSTONE_ADMIN_PASSWORD}" admin - openstack role create admin - openstack role add --project admin --user admin admin exit 0 fi -- cgit v1.2.3