Add swift support
Exampel config: configs: glance: swift: enable: true store_create_container_on_put: true Change-Id: I9e097de7f04f6137a66d3438cc0824af64d68b42 Depends-On: Iefcebfe55544331b379f4ee1c4001ec33f539a28
This commit is contained in:
parent
0407c1c15f
commit
9dfb1a6234
|
@ -19,6 +19,11 @@ configs:
|
|||
username: "glance"
|
||||
pool_name: "images"
|
||||
|
||||
swift:
|
||||
enable: false
|
||||
store_create_container_on_put: true
|
||||
store_container: glance
|
||||
|
||||
sources:
|
||||
openstack/glance:
|
||||
git_url: https://github.com/openstack/glance.git
|
||||
|
|
|
@ -41,6 +41,14 @@ default_store = rbd
|
|||
rbd_store_pool = {{ glance.ceph.pool_name }}
|
||||
rbd_store_user = {{ glance.ceph.username }}
|
||||
rbd_store_ceph_conf = /etc/ceph/ceph.conf
|
||||
{% elif glance.swift.enable %}
|
||||
stores = swift
|
||||
default_store = swift
|
||||
swift_store_create_container_on_put = {{ glance.swift.store_create_container_on_put }}
|
||||
swift_store_region = RegionOne
|
||||
default_swift_reference = swift
|
||||
swift_store_container = {{ glance.swift.store_container }}
|
||||
swift_store_config_file = /etc/glance/glance-swift-store.conf
|
||||
{% else %}
|
||||
default_store = file
|
||||
filesystem_store_datadir = /var/lib/glance/images/
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[swift]
|
||||
auth_version = 3
|
||||
auth_address = http://{{ address('keystone') }}:{{ keystone.public_port }}/v3
|
||||
user = {{ openstack.project_name }}:{{ glance.user }}
|
||||
key = {{ glance.password }}
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
|
@ -61,6 +61,9 @@ service:
|
|||
- ceph-conf
|
||||
- glance-ceph-key
|
||||
# {% endif %}
|
||||
# {% if glance.swift.enable %}
|
||||
- glance-swift-conf
|
||||
# {% endif %}
|
||||
command: glance-api
|
||||
|
||||
files:
|
||||
|
@ -73,3 +76,6 @@ files:
|
|||
glance-ceph-key:
|
||||
path: /etc/ceph/ceph.client.glance.keyring
|
||||
content: ceph.client.glance.keyring.j2
|
||||
glance-swift-conf:
|
||||
path: /etc/glance/glance-swift-store.conf
|
||||
content: glance-swift-store.conf.j2
|
||||
|
|
Loading…
Reference in New Issue