Enable filesystem and http stores by default and make context a little more standard

This commit is contained in:
Liam Young
2014-10-07 15:19:08 +00:00
parent 6e5880eb3c
commit a4cfdfdab9
2 changed files with 3 additions and 3 deletions

View File

@@ -53,16 +53,16 @@ class ObjectStoreContext(OSContextGenerator):
class MultiStoreContext(OSContextGenerator):
def __call__(self):
stores = ['glance.store.filesystem.Store', 'glance.store.http.Store']
store_mapping = {
'ceph': 'glance.store.rbd.Store',
'object-store': 'glance.store.swift.Store',
}
stores = []
for store_relation, store_type in store_mapping.iteritems():
if relation_ids(store_relation):
stores.append(store_type)
return {
'known_stores': 'known_stores = ' + ','.join(stores)
'known_stores': ','.join(stores)
}

View File

@@ -3,7 +3,7 @@ verbose = {{ verbose }}
use_syslog = {{ use_syslog }}
debug = {{ debug }}
{{ known_stores }}
known_stores = {{ known_stores }}
{% if rbd_pool -%}
default_store = rbd
{% elif swift_store -%}