| ... | ... |
@@ -21,7 +21,7 @@ use_syslog = False |
| 21 | 21 |
# SQLAlchemy connection string for the reference implementation |
| 22 | 22 |
# registry server. Any valid SQLAlchemy connection string is fine. |
| 23 | 23 |
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine |
| 24 |
-sql_connection = mysql://root:nova@localhost/glance |
|
| 24 |
+sql_connection = mysql://root:%MYSQL_PASS%@localhost/glance |
|
| 25 | 25 |
|
| 26 | 26 |
# Period in seconds after which SQLAlchemy should reestablish its connection |
| 27 | 27 |
# to the database. |
| 28 | 28 |
old mode 100755 |
| 29 | 29 |
new mode 100644 |
| ... | ... |
@@ -49,7 +49,7 @@ keystone-service-admin-role = KeystoneServiceAdmin |
| 49 | 49 |
# server. Any valid SQLAlchemy connection string is fine. |
| 50 | 50 |
# See: http://bit.ly/ideIpI |
| 51 | 51 |
#sql_connection = sqlite:///keystone.db |
| 52 |
-sql_connection = mysql://root:nova@localhost/keystone |
|
| 52 |
+sql_connection = mysql://root:%MYSQL_PASS%@localhost/keystone |
|
| 53 | 53 |
backend_entities = ['UserRoleAssociation', 'Endpoints', 'Role', 'Tenant', |
| 54 | 54 |
'User', 'Credentials', 'EndpointTemplates', 'Token', |
| 55 | 55 |
'Service'] |
| ... | ... |
@@ -178,7 +178,9 @@ rm -rf /var/lib/glance/images/* |
| 178 | 178 |
mysql -uroot -p$MYSQL_PASS -e 'DROP DATABASE glance;' || true |
| 179 | 179 |
mysql -uroot -p$MYSQL_PASS -e 'CREATE DATABASE glance;' |
| 180 | 180 |
# Copy over our glance-registry.conf |
| 181 |
-cp $DIR/files/glance-registry.conf $GLANCE_DIR/etc/glance-registry.conf |
|
| 181 |
+$GLANCE_CONF=$GLANCE_DIR/etc/glance-registry.conf |
|
| 182 |
+cp $DIR/files/glance-registry.conf $GLANCE_CONF |
|
| 183 |
+sudo sed -e "s,%MYSQL_PASS%,$MYSQL_PASS,g" -i $GLANCE_CONF |
|
| 182 | 184 |
|
| 183 | 185 |
# Nova |
| 184 | 186 |
# ---- |
| ... | ... |
@@ -251,6 +253,7 @@ mysql -uroot -p$MYSQL_PASS -e 'CREATE DATABASE keystone;' |
| 251 | 251 |
# FIXME (anthony) keystone should use keystone.conf.example |
| 252 | 252 |
KEYSTONE_CONF=$KEYSTONE_DIR/etc/keystone.conf |
| 253 | 253 |
cp $DIR/files/keystone.conf $KEYSTONE_CONF |
| 254 |
+sudo sed -e "s,%MYSQL_PASS%,$MYSQL_PASS,g" -i $KEYSTONE_CONF |
|
| 254 | 255 |
|
| 255 | 256 |
# initialize keystone with default users/endpoints |
| 256 | 257 |
BIN_DIR=$KEYSTONE_DIR/bin bash $DIR/files/keystone_data.sh |