Merge "api: Clear ssl parameters when use_ssl is false"
This commit is contained in:
commit
de9e54831d
@ -245,6 +245,12 @@ running as a standalone service, or httpd for being run by a httpd server")
|
||||
'ssl/key_file' : value => $key_file;
|
||||
'ssl/ca_file' : value => $ca_file;
|
||||
}
|
||||
} else {
|
||||
cinder_config {
|
||||
'ssl/cert_file' : value => $::os_service_default;
|
||||
'ssl/key_file' : value => $::os_service_default;
|
||||
'ssl/ca_file' : value => $::os_service_default;
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_service_default($ratelimits)) {
|
||||
|
@ -38,6 +38,9 @@ describe 'cinder::api' do
|
||||
:enable_proxy_headers_parsing => '<SERVICE DEFAULT>',
|
||||
:max_request_body_size => '<SERVICE DEFAULT>',
|
||||
)
|
||||
is_expected.to contain_cinder_config('ssl/ca_file').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('ssl/cert_file').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('ssl/key_file').with_value('<SERVICE DEFAULT>')
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user