aboutsummaryrefslogtreecommitdiff
path: root/docker
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
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')
-rwxr-xr-xdocker/cinder/start.sh2
-rw-r--r--docker/glance/glance-base/config-glance.sh2
-rwxr-xr-xdocker/glance/glance-registry/start.sh2
-rw-r--r--docker/heat/heat-engine/start.sh2
-rwxr-xr-xdocker/keystone/start.sh6
-rw-r--r--docker/nova-compute/nova-compute/start.sh2
-rw-r--r--docker/swift/swift-account/start.sh2
-rw-r--r--docker/swift/swift-container/start.sh2
-rw-r--r--docker/swift/swift-object/start.sh2
9 files changed, 11 insertions, 11 deletions
diff --git a/docker/cinder/start.sh b/docker/cinder/start.sh
index fedd86887..84b79e501 100755
--- a/docker/cinder/start.sh
+++ b/docker/cinder/start.sh
@@ -21,7 +21,7 @@ if ! [ "$CINDER_DB_PASSWORD" ]; then
export CINDER_DB_PASSWORD
fi
-mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root \
+mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root \
-p${DB_ROOT_PASSWORD} mysql <<EOF
EOF
CREATE DATABASE IF NOT EXISTS ${CINDER_DB_NAME};
diff --git a/docker/glance/glance-base/config-glance.sh b/docker/glance/glance-base/config-glance.sh
index 2b2ae0473..6cdd76efd 100644
--- a/docker/glance/glance-base/config-glance.sh
+++ b/docker/glance/glance-base/config-glance.sh
@@ -50,5 +50,5 @@ crudini --set $cfg
crudini --set $cfg \
database \
connection \
- "mysql://${GLANCE_DB_USER}:${GLANCE_DB_PASSWORD}@${MARIADBMASTER_PORT_3306_TCP_ADDR}:${MARIADBMASTER_PORT_3306_TCP_PORT}/${GLANCE_DB_NAME}"
+ "mysql://${GLANCE_DB_USER}:${GLANCE_DB_PASSWORD}@${MARIADB_PORT_3306_TCP_ADDR}:${MARIADB_PORT_3306_TCP_PORT}/${GLANCE_DB_NAME}"
diff --git a/docker/glance/glance-registry/start.sh b/docker/glance/glance-registry/start.sh
index 4918e2454..c169087a9 100755
--- a/docker/glance/glance-registry/start.sh
+++ b/docker/glance/glance-registry/start.sh
@@ -23,7 +23,7 @@ fi
sh /opt/glance/config-glance.sh registry
-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 ${GLANCE_DB_NAME} DEFAULT CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON ${GLANCE_DB_NAME}.* TO
'${GLANCE_DB_USER}'@'%' IDENTIFIED BY '${GLANCE_DB_PASSWORD}'
diff --git a/docker/heat/heat-engine/start.sh b/docker/heat/heat-engine/start.sh
index ac95ad3a1..35df8f04a 100644
--- a/docker/heat/heat-engine/start.sh
+++ b/docker/heat/heat-engine/start.sh
@@ -23,7 +23,7 @@ fi
sh /opt/heat/config-heat.sh engine
-mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root \
+mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root \
-p${DB_ROOT_PASSWORD} mysql <<EOF
CREATE DATABASE IF NOT EXISTS ${GLANCE_DB_NAME};
GRANT ALL PRIVILEGES ON heat* TO
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 \
diff --git a/docker/nova-compute/nova-compute/start.sh b/docker/nova-compute/nova-compute/start.sh
index 58b4a3f18..ed6631cfc 100644
--- a/docker/nova-compute/nova-compute/start.sh
+++ b/docker/nova-compute/nova-compute/start.sh
@@ -23,7 +23,7 @@ fi
sh /opt/nova/config-nova.sh compute
-mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root \
+mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root \
-p${DB_ROOT_PASSWORD} mysql <<EOF
CREATE DATABASE IF NOT EXISTS ${NOVA_DB_NAME};
GRANT ALL PRIVILEGES ON nova* TO
diff --git a/docker/swift/swift-account/start.sh b/docker/swift/swift-account/start.sh
index 783df0a66..29269d577 100644
--- a/docker/swift/swift-account/start.sh
+++ b/docker/swift/swift-account/start.sh
@@ -23,7 +23,7 @@ fi
sh /opt/swift/config-swift.sh account-server
-mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root \
+mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root \
-p${DB_ROOT_PASSWORD} mysql <<EOF
CREATE DATABASE IF NOT EXISTS ${SWIFT_DB_NAME};
GRANT ALL PRIVILEGES ON swift* TO
diff --git a/docker/swift/swift-container/start.sh b/docker/swift/swift-container/start.sh
index 8e952c729..aa22739b7 100644
--- a/docker/swift/swift-container/start.sh
+++ b/docker/swift/swift-container/start.sh
@@ -23,7 +23,7 @@ fi
sh /opt/swift/config-swift.sh container
-mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root \
+mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root \
-p${DB_ROOT_PASSWORD} mysql <<EOF
CREATE DATABASE IF NOT EXISTS ${SWIFT_DB_NAME};
GRANT ALL PRIVILEGES ON swift* TO
diff --git a/docker/swift/swift-object/start.sh b/docker/swift/swift-object/start.sh
index 4b294d508..4f0a8febf 100644
--- a/docker/swift/swift-object/start.sh
+++ b/docker/swift/swift-object/start.sh
@@ -23,7 +23,7 @@ fi
sh /opt/swift/config-swift.sh engine
-mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root \
+mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root \
-p${DB_ROOT_PASSWORD} mysql <<EOF
CREATE DATABASE IF NOT EXISTS ${SWIFT_DB_NAME};
GRANT ALL PRIVILEGES ON swift* TO