Home OpenStack-Ansible Installation Guide
Optionally, the images created by the Image Service (glance) can be stored using Object Storage.
If there is an existing Image Service (glance) backend (for example, cloud files) but want to add Object Storage (swift) to use as the Image Service back end, re-add any images from the Image Service after moving to Object Storage. If the Image Service variables are changed (as described below) and begin using Object storage, any images in the Image Service will no longer be available.
Procedure 5.3. Integrating Object Storage with Image Service
This procedure requires the following:
Update the glance options in the /etc/openstack_deploy/user_variables.yml file:
# Glance Options
glance_default_store: swift
glance_swift_store_auth_address: '{{ auth_identity_uri }}'
glance_swift_store_container: glance_images
glance_swift_store_endpoint_type: internalURL
glance_swift_store_key: '{{ glance_service_password }}'
glance_swift_store_region: RegionOne
glance_swift_store_user: 'service:glance'
Rerun the Image Service (glance) configuration plays.
Run the Image Service (glance) playbook:
# cd /opt/openstack-ansible/playbooks
# openstack-ansible os-glance-install.yml --tags "glance-config"