Merge "Initialize newly added glance-image-import config file"
This commit is contained in:
commit
db0d40ebd5
@ -56,6 +56,7 @@ GLANCE_CACHE_CONF=$GLANCE_CONF_DIR/glance-cache.conf
|
||||
GLANCE_POLICY_JSON=$GLANCE_CONF_DIR/policy.json
|
||||
GLANCE_SCHEMA_JSON=$GLANCE_CONF_DIR/schema-image.json
|
||||
GLANCE_SWIFT_STORE_CONF=$GLANCE_CONF_DIR/glance-swift-store.conf
|
||||
GLANCE_IMAGE_IMPORT_CONF=$GLANCE_CONF_DIR/glance-image-import.conf
|
||||
GLANCE_V1_ENABLED=${GLANCE_V1_ENABLED:-False}
|
||||
|
||||
if is_service_enabled tls-proxy; then
|
||||
@ -232,6 +233,11 @@ function configure_glance {
|
||||
# Store specific confs
|
||||
iniset $GLANCE_CACHE_CONF glance_store filesystem_store_datadir $GLANCE_IMAGE_DIR/
|
||||
|
||||
# Set default configuration options for the glance-image-import
|
||||
iniset $GLANCE_IMAGE_IMPORT_CONF image_import_opts image_import_plugins []
|
||||
iniset $GLANCE_IMAGE_IMPORT_CONF inject_metadata_properties ignore_user_roles admin
|
||||
iniset $GLANCE_IMAGE_IMPORT_CONF inject_metadata_properties inject
|
||||
|
||||
cp -p $GLANCE_DIR/etc/policy.json $GLANCE_POLICY_JSON
|
||||
cp -p $GLANCE_DIR/etc/schema-image.json $GLANCE_SCHEMA_JSON
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user