1eff4a436e
Flavour is overloaded in openstack due to it being used by nova. Element seems to have the same feeling of combinability without using a term already in active use in the openstack community. Change-Id: Ia4c028d4062a8f69c66665821c94dd4bcdf06031
20 lines
476 B
Bash
Executable File
20 lines
476 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o xtrace
|
|
|
|
source $(dirname $0)/defaults
|
|
#AUTH_TOKEN
|
|
#MYSQL_KEYSTONEPASS
|
|
#ADMIN_PASSWORD
|
|
#HOST_IP
|
|
|
|
KEYSTONE_FILE="/etc/keystone/keystone.conf"
|
|
|
|
SQL_CONNECTION="mysql://keystone:${MYSQL_KEYSTONEPASS}@localhost:3306/keystone"
|
|
|
|
sed -e "s,^connection\s*=\s*.\+$,connection = $SQL_CONNECTION," -i ${KEYSTONE_FILE}
|
|
sed -e 's|^[#]*[ \t]*admin_token[ \t]*=.*|admin_token = '${AUTH_TOKEN}'|' -i ${KEYSTONE_FILE}
|
|
|
|
service keystone restart
|
|
keystone-manage db_sync
|