Use swift as a backend to glance

This commit will cause swift to be used as a backend to glance
if the heat metadata glance.backend = swift.

Change-Id: I4c4cc0c6763a91803ba51703a552a080d637abb0
This commit is contained in:
Derek Higgins 2013-11-11 20:35:02 +00:00
parent 7a76db45b3
commit b693937292
4 changed files with 21 additions and 13 deletions

View File

@ -1 +1,12 @@
Installs glance service from git.
Configuration
-------------
glance:
backend: swift
- The backend store to use
service-password: password
- The service password for the glance user
swift-store-user: service:glance
swift-store-key: userpassword
- The credentials to use against swift if using the swift backend.

View File

@ -7,7 +7,7 @@
[DEFAULT]
debug = False
default_store = file
default_store = {{glance.backend}}
bind_host = 0.0.0.0
bind_port = 9292
@ -59,12 +59,12 @@ qpid_tcp_nodelay = True
filesystem_store_datadir = /var/lib/glance/images/
swift_store_auth_version = 2
swift_store_auth_address = {{keystone.host}}:5000/v2.0/
swift_store_auth_address = http://{{keystone.host}}:5000/v2.0/
swift_store_user = {{swift.store_user}}
swift_store_key = {{swift.store_key}}
swift_store_user = {{glance.swift-store-user}}
swift_store_key = {{glance.swift-store-key}}
swift_store_container = glance
swift_store_create_container_on_put = False
swift_store_create_container_on_put = True
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_enable_snet = False

View File

@ -16,11 +16,11 @@ registry_port = 9191
filesystem_store_datadir = /var/lib/glance/images/
swift_store_auth_version = 2
swift_store_auth_address = 127.0.0.1:5000/v2.0/
swift_store_user = jdoe:jdoe
swift_store_key = a86850deb2742ec3cb41518e26aa2d89
swift_store_auth_address = http://{{keystone.host}}:5000/v2.0/
swift_store_user = {{glance.swift-store-user}}
swift_store_key = {{glance.swift-store-key}}
swift_store_container = glance
swift_store_create_container_on_put = False
swift_store_create_container_on_put = True
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_enable_snet = False

View File

@ -14,6 +14,7 @@
"password": "guest"
},
"glance": {
"backend": "file",
"host": "127.0.0.1",
"db": "mysql://glance:unset@localhost/glance",
"service-password": "unset"
@ -79,9 +80,5 @@
},
"horizon": {
"secret_key": "unset___________"
},
"swift": {
"store_user": "unset",
"store_key": "unset"
}
}