puppet-glance/manifests/backend/swift.pp
Emilien Macchi 908a62b2b9 Update [glance_store] section in glance config for Juno
Use new parameters for Juno like it's documented here:
http://docs.openstack.org/trunk/config-reference/content/glance-conf-changes-master.html
* Use [glance_store] section
* Update prefix when needed

Partial-Bug: #1391099

Change-Id: I096b16c33c493270422113e0107a100f967debc6
2014-11-14 19:30:39 +01:00

54 lines
2.0 KiB
Puppet

#
# configures the storage backend for glance
# as a swift instance
#
# $swift_store_user - Required.
#
# $swift_store_key - Required.
#
# $swift_store_auth_address - Optional. Default: '127.0.0.1:5000/v2.0/'
#
# $swift_store_container - Optional. Default: 'glance'
#
# $swift_store_auth_version - Optional. Default: '2'
#
# $swift_store_create_container_on_put - Optional. Default: 'False'
#
# $swift_store_large_object_size - Optional. Default: '5120'
class glance::backend::swift(
$swift_store_user,
$swift_store_key,
$swift_store_auth_address = '127.0.0.1:5000/v2.0/',
$swift_store_container = 'glance',
$swift_store_auth_version = '2',
$swift_store_large_object_size = '5120',
$swift_store_create_container_on_put = false
) {
glance_api_config {
'glance_store/default_store': value => 'swift';
'glance_store/swift_store_user': value => $swift_store_user;
'glance_store/swift_store_key': value => $swift_store_key;
'glance_store/swift_store_auth_address': value => $swift_store_auth_address;
'DEFAULT/swift_store_container': value => $swift_store_container;
'DEFAULT/swift_store_auth_version': value => $swift_store_auth_version;
'DEFAULT/swift_store_create_container_on_put':
value => $swift_store_create_container_on_put;
'DEFAULT/swift_store_large_object_size':
value => $swift_store_large_object_size;
}
glance_cache_config {
'glance_store/swift_store_user': value => $swift_store_user;
'glance_store/swift_store_key': value => $swift_store_key;
'glance_store/swift_store_auth_address': value => $swift_store_auth_address;
'DEFAULT/swift_store_container': value => $swift_store_container;
'DEFAULT/swift_store_auth_version': value => $swift_store_auth_version;
'DEFAULT/swift_store_create_container_on_put':
value => $swift_store_create_container_on_put;
'DEFAULT/swift_store_large_object_size':
value => $swift_store_large_object_size;
}
}