diff options
author | 2017-08-17 19:10:04 +0000 | |
---|---|---|
committer | 2017-08-17 19:10:04 +0000 | |
commit | 9ba43d84a605643e423b15a0eec4c45857e7f744 (patch) | |
tree | 168cb07d61b04f6d95d760269e0ba4d267aea037 /docker/services | |
parent | 111270884313c15ecfac7f3f2a3af2e03c06e076 (diff) | |
parent | f6349079cf78baf8f2d0500cf3818e3689527995 (diff) |
Merge "Mount NFS volume to docker container."
Diffstat (limited to 'docker/services')
-rw-r--r-- | docker/services/glance-api.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/services/glance-api.yaml b/docker/services/glance-api.yaml index 044eb283..df226b15 100644 --- a/docker/services/glance-api.yaml +++ b/docker/services/glance-api.yaml @@ -39,10 +39,16 @@ parameters: EnableInternalTLS: type: boolean default: false + GlanceNfsEnabled: + default: false + description: > + When using GlanceBackend 'file', mount NFS share for image storage. + type: boolean conditions: internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} + nfs_backend_enabled: {equals: [{get_param: GlanceNfsEnabled}, true]} resources: @@ -128,6 +134,11 @@ outputs: - /var/lib/config-data/puppet-generated/glance_api/:/var/lib/kolla/config_files/src:ro - /var/log/containers/glance:/var/log/glance - /etc/ceph:/var/lib/kolla/config_files/src-ceph:ro + - + if: + - nfs_backend_enabled + - /var/lib/glance:/var/lib/glance + - '' environment: - KOLLA_BOOTSTRAP=True - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS |