Use multistore modules in the example manifest
... because legacy backend modules were deprecated. Change-Id: Ic32ae0a9aadf893d28fa0208f27b0f440ad4f4d1
This commit is contained in:
parent
5791916206
commit
582c37520d
|
@ -0,0 +1,12 @@
|
||||||
|
glance::backend::multistore::file { 'file1': }
|
||||||
|
|
||||||
|
glance::backend::multistore::swift { 'swift1':
|
||||||
|
swift_store_user => 'demo',
|
||||||
|
swift_store_key => 'secrete',
|
||||||
|
}
|
||||||
|
|
||||||
|
class { 'glance::api':
|
||||||
|
keystone_password => 'a_big_secret',
|
||||||
|
enabled_backends => ['swift1:swift', 'file1:file'],
|
||||||
|
default_backend => 'swift1',
|
||||||
|
}
|
|
@ -1,25 +0,0 @@
|
||||||
# Example: Declaring multiple backend stores
|
|
||||||
#
|
|
||||||
# To declare multiple glance::backend::* classes, each declaration must include
|
|
||||||
# the parameter multi_store set to true. This prevents each individual backend from
|
|
||||||
# setting itself as the default store as soon as it is declared. Rather, the
|
|
||||||
# default store can be chosen by the user when declaring glance::api (if no
|
|
||||||
# default_store is set at that point, then the first store in the list 'stores'
|
|
||||||
# provided will be made the default).
|
|
||||||
|
|
||||||
class { 'glance::backend::file':
|
|
||||||
multi_store => true,
|
|
||||||
}
|
|
||||||
|
|
||||||
class { 'glance::backend::swift':
|
|
||||||
swift_store_user => 'demo',
|
|
||||||
swift_store_key => 'secrete',
|
|
||||||
multi_store => true,
|
|
||||||
}
|
|
||||||
|
|
||||||
class { 'glance::api':
|
|
||||||
keystone_password => 'a_big_secret',
|
|
||||||
stores => ['file', 'swift'],
|
|
||||||
default_store => 'swift',
|
|
||||||
multi_store => true,
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
# Example: Declaring a single backend store
|
|
||||||
#
|
|
||||||
# To declare only one glance::backend::* class, all you need to do is declare
|
|
||||||
# it without the multi_store parameter. This way, multi_store will default to false
|
|
||||||
# and the glance::backend::* class will automatically set itself as the default backend.
|
|
||||||
# After doing this, you must not declare glance::api with multi_store set to true,
|
|
||||||
# or it will attempt to override the default set by the backend class and result
|
|
||||||
# in an error.
|
|
||||||
|
|
||||||
class { 'glance::backend::swift':
|
|
||||||
swift_store_user => 'demo',
|
|
||||||
swift_store_key => 'secrete',
|
|
||||||
}
|
|
||||||
|
|
||||||
class { 'glance::api':
|
|
||||||
keystone_password => 'a_big_secret',
|
|
||||||
stores => ['swift'],
|
|
||||||
}
|
|
Loading…
Reference in New Issue