aboutsummaryrefslogtreecommitdiff
path: root/docker/keystone
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@redhat.com>2014-10-05 16:12:44 -0400
committerLars Kellogg-Stedman <lars@redhat.com>2014-10-07 10:58:52 -0400
commit068face6fa52d19d421913b9969b291500a39c6d (patch)
tree4eb637bcdc592bc66ff13c47745184aafb100f25 /docker/keystone
parent296b09e0c444cc91f3e9f4a1046989d956c1253a (diff)
downloadkolla-068face6fa52d19d421913b9969b291500a39c6d.tar.gz
kolla-068face6fa52d19d421913b9969b291500a39c6d.zip
use renamed mariadb services
This patch updates all the json files that reference the mariadb service variables to ues the new names. Labelling things foo-master crept into this repository from the kubernetes guestbook example (which has redis-master and redis-slaves). We're not running clustered software at the moment so these labels are unnecessary. Change-Id: I229d04c89aa13cb6cc2e1c33a0a7b21e1c6e9caa
Diffstat (limited to 'docker/keystone')
-rwxr-xr-xdocker/keystone/start.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/keystone/start.sh b/docker/keystone/start.sh
index 6e0ff7cd7..a825c39d8 100755
--- a/docker/keystone/start.sh
+++ b/docker/keystone/start.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Exit the container if MariaDB is not yet up - then depend on kube to restart
-if [ -z "$MARIADBMASTER_PORT_3306_TCP_PORT" ]; then
+if [ -z "$MARIADB_PORT_3306_TCP_PORT" ]; then
exit 1
fi
@@ -16,7 +16,7 @@ if ! [ "$KEYSTONE_DB_PASSWORD" ]; then
KEYSTONE_DB_PASSWORD=$(openssl rand -hex 15)
fi
-mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root -p${DB_ROOT_PASSWORD} mysql <<EOF
+mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root -p${DB_ROOT_PASSWORD} mysql <<EOF
CREATE DATABASE IF NOT EXISTS keystone;
GRANT ALL PRIVILEGES ON keystone.* TO
'keystone'@'%' IDENTIFIED BY '${KEYSTONE_DB_PASSWORD}'
@@ -25,7 +25,7 @@ EOF
crudini --set /etc/keystone/keystone.conf \
database \
connection \
- "mysql://keystone:${KEYSTONE_DB_PASSWORD}@${MARIADBMASTER_PORT_3306_TCP_ADDR}:${MARIADBMASTER_PORT_3306_TCP_PORT}/keystone"
+ "mysql://keystone:${KEYSTONE_DB_PASSWORD}@${MARIADB_PORT_3306_TCP_ADDR}:${MARIADB_PORT_3306_TCP_PORT}/keystone"
crudini --set /etc/keystone/keystone.conf \
DEFAULT \
admin_token \