Change-Id: Icbb355c15bfffe17725ea5cc64cfa5e76c1e74e6
| ... | ... |
@@ -116,6 +116,15 @@ function configure_glance() {
|
| 116 | 116 |
iniset_rpc_backend glance $GLANCE_API_CONF DEFAULT |
| 117 | 117 |
iniset $GLANCE_API_CONF keystone_authtoken signing_dir $GLANCE_AUTH_CACHE_DIR/api |
| 118 | 118 |
|
| 119 |
+ # Store the images in swift if enabled. |
|
| 120 |
+ if is_service_enabled s-proxy; then |
|
| 121 |
+ iniset $GLANCE_API_CONF DEFAULT default_store swift |
|
| 122 |
+ iniset $GLANCE_API_CONF DEFAULT swift_store_auth_address $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0/ |
|
| 123 |
+ iniset $GLANCE_API_CONF DEFAULT swift_store_user $SERVICE_TENANT_NAME:glance |
|
| 124 |
+ iniset $GLANCE_API_CONF DEFAULT swift_store_key $SERVICE_PASSWORD |
|
| 125 |
+ iniset $GLANCE_API_CONF DEFAULT swift_store_create_container_on_put True |
|
| 126 |
+ fi |
|
| 127 |
+ |
|
| 119 | 128 |
cp -p $GLANCE_DIR/etc/glance-registry-paste.ini $GLANCE_REGISTRY_PASTE_INI |
| 120 | 129 |
|
| 121 | 130 |
cp -p $GLANCE_DIR/etc/glance-api-paste.ini $GLANCE_API_PASTE_INI |
| ... | ... |
@@ -826,17 +826,7 @@ fi |
| 826 | 826 |
|
| 827 | 827 |
if is_service_enabled g-reg; then |
| 828 | 828 |
echo_summary "Configuring Glance" |
| 829 |
- |
|
| 830 | 829 |
init_glance |
| 831 |
- |
|
| 832 |
- # Store the images in swift if enabled. |
|
| 833 |
- if is_service_enabled s-proxy; then |
|
| 834 |
- iniset $GLANCE_API_CONF DEFAULT default_store swift |
|
| 835 |
- iniset $GLANCE_API_CONF DEFAULT swift_store_auth_address $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0/ |
|
| 836 |
- iniset $GLANCE_API_CONF DEFAULT swift_store_user $SERVICE_TENANT_NAME:glance |
|
| 837 |
- iniset $GLANCE_API_CONF DEFAULT swift_store_key $SERVICE_PASSWORD |
|
| 838 |
- iniset $GLANCE_API_CONF DEFAULT swift_store_create_container_on_put True |
|
| 839 |
- fi |
|
| 840 | 830 |
fi |
| 841 | 831 |
|
| 842 | 832 |
|