This patch adds a way to setup a marconi instance using sqlalchemy.
Change-Id: Ia694b76286835ca2ca935814370aa43544fe84fa
... | ... |
@@ -104,7 +104,10 @@ function configure_marconi { |
104 | 104 |
iniset $MARCONI_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME |
105 | 105 |
iniset $MARCONI_CONF keystone_authtoken signing_dir $MARCONI_AUTH_CACHE_DIR |
106 | 106 |
|
107 |
- if [[ "$MARCONI_BACKEND" = 'mongodb' ]]; then |
|
107 |
+ if [ "$MARCONI_BACKEND" = 'mysql' ] || [ "$MARCONI_BACKEND" = 'postgresql' ] ; then |
|
108 |
+ iniset $MARCONI_CONF drivers storage sqlalchemy |
|
109 |
+ iniset $MARCONI_CONF 'drivers:storage:sqlalchemy' uri `database_connection_url marconi` |
|
110 |
+ else |
|
108 | 111 |
iniset $MARCONI_CONF drivers storage mongodb |
109 | 112 |
iniset $MARCONI_CONF 'drivers:storage:mongodb' uri mongodb://localhost:27017/marconi |
110 | 113 |
configure_mongodb |