Make glance filesystem_store_datadir configurable.
User can use custom directory to store images. For example using a shared file system as backend. Change-Id: Iab7a9a51e619bdbf8f7bd4626ebe4d703e6d4819
This commit is contained in:
parent
4510c525a6
commit
f70dfc5dc3
@ -471,6 +471,7 @@ keystone_default_user_role: "_member_"
|
||||
glance_backend_file: "{{ not enable_ceph | bool }}"
|
||||
glance_backend_ceph: "{{ enable_ceph }}"
|
||||
glance_backend_vmware: "no"
|
||||
glance_file_datadir_volume: "glance"
|
||||
|
||||
#######################
|
||||
# Ceilometer options
|
||||
|
@ -3,6 +3,7 @@
|
||||
command: >
|
||||
env enable_haproxy={{ enable_haproxy }}
|
||||
enable_swift={{ enable_swift }}
|
||||
glance_file_datadir_volume={{ glance_file_datadir_volume }}
|
||||
kolla_internal_vip_address={{ kolla_internal_vip_address }}
|
||||
kolla_external_vip_address={{ kolla_external_vip_address }}
|
||||
kolla_dev_repos_directory={{ kolla_dev_repos_directory }}
|
||||
|
@ -10,7 +10,7 @@ glance_services:
|
||||
volumes:
|
||||
- "{{ node_config_directory }}/glance-api/:{{ container_config_directory }}/:ro"
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
- "glance:/var/lib/glance/"
|
||||
- "{{ glance_file_datadir_volume }}:/var/lib/glance/"
|
||||
- "kolla_logs:/var/log/kolla/"
|
||||
glance-registry:
|
||||
container_name: glance_registry
|
||||
|
@ -51,6 +51,11 @@ if [[ "$enable_swift" == "yes" ]]; then
|
||||
sed -i '/\/srv\/node\//d' /etc/fstab
|
||||
fi
|
||||
|
||||
if [[ "$glance_file_datadir_volume" != "glance" && -d "$glance_file_datadir_volume" ]]; then
|
||||
echo "Removing glance volume if it is customzied"
|
||||
rm -rfv $glance_file_datadir_volume
|
||||
fi
|
||||
|
||||
echo "Getting folders name..."
|
||||
FOLDER_PATH="/etc/kolla/"
|
||||
for dir in $FOLDER_PATH*; do
|
||||
|
Loading…
Reference in New Issue
Block a user