Allow paste deploy flavor to be passed for glance api
Some users may want to pass in one of keystone, keystone+caching or keystone+cachemanagement depending on their caching needs Change-Id: Ia13cc2f1d8ec43074b114edf1b2366b85ca77aa0
This commit is contained in:
parent
1598196ae7
commit
3ade42f65e
@ -50,6 +50,7 @@ class glance::api(
|
||||
$auth_host = '127.0.0.1',
|
||||
$auth_port = '35357',
|
||||
$auth_protocol = 'http',
|
||||
$pipeline = 'keystone+cachemanagement',
|
||||
$keystone_tenant = 'admin',
|
||||
$keystone_user = 'admin',
|
||||
$enabled = true,
|
||||
@ -136,7 +137,7 @@ class glance::api(
|
||||
# keystone config
|
||||
if $auth_type == 'keystone' {
|
||||
glance_api_config {
|
||||
'paste_deploy/flavor': value => 'keystone+cachemanagement';
|
||||
'paste_deploy/flavor': value => $pipeline;
|
||||
'keystone_authtoken/admin_tenant_name': value => $keystone_tenant;
|
||||
'keystone_authtoken/admin_user': value => $keystone_user;
|
||||
'keystone_authtoken/admin_password': value => $keystone_password;
|
||||
|
@ -129,4 +129,16 @@ describe 'glance::api' do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'with overridden pipeline' do
|
||||
let :params do
|
||||
{
|
||||
:keystone_password => 'ChangeMe',
|
||||
:pipeline => 'keystone',
|
||||
}
|
||||
end
|
||||
|
||||
it { should contain_glance_api_config('paste_deploy/flavor').with_value('keystone') }
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user