20 lines
736 B
Puppet
20 lines
736 B
Puppet
class packstack::glance::backend::swift ()
|
|
{
|
|
Service<| tag == 'swift-service' |> -> Service['glance-api']
|
|
|
|
$swift_auth_version = lookup('CONFIG_KEYSTONE_API_VERSION') ? {
|
|
'v2.0' => '2',
|
|
default => '3',
|
|
}
|
|
|
|
glance::backend::multistore::swift { 'swift':
|
|
swift_store_user => 'services:glance',
|
|
swift_store_key => lookup('CONFIG_GLANCE_KS_PW'),
|
|
swift_store_auth_address => lookup('CONFIG_KEYSTONE_PUBLIC_URL'),
|
|
swift_store_container => 'glance',
|
|
swift_store_auth_version => $swift_auth_version,
|
|
swift_store_large_object_size => '5120',
|
|
swift_store_create_container_on_put => true,
|
|
}
|
|
}
|