Support array value for console_ssl_ciphers
The [colsone] ssl_ciphers option takes a colon-separated list. This change allows usage of a native array value to set the value so that users can more easily compose up the value without considering the actual value format. Change-Id: I1a1b43f040c8acc30a85164b03312683ab9002dc
This commit is contained in:
@@ -588,7 +588,7 @@ but should be one of: ssh-rsa, ssh-dsa, ssh-ecdsa.")
|
||||
'DEFAULT/ssl_only': value => $ssl_only;
|
||||
'DEFAULT/cert': value => $cert;
|
||||
'DEFAULT/key': value => $key;
|
||||
'console/ssl_ciphers': value => $console_ssl_ciphers;
|
||||
'console/ssl_ciphers': value => join(any2array($console_ssl_ciphers), ':');
|
||||
'console/ssl_minimum_version': value => $console_ssl_minimum_version;
|
||||
'DEFAULT/my_ip': value => $my_ip;
|
||||
'DEFAULT/host': value => $host;
|
||||
|
@@ -466,6 +466,14 @@ describe 'nova' do
|
||||
it { is_expected.to contain_nova_config('DEFAULT/initial_disk_allocation_ratio').with_value(3.0) }
|
||||
end
|
||||
|
||||
context 'with array used for console_ssl_ciphers' do
|
||||
let :params do
|
||||
{
|
||||
:console_ssl_ciphers => ['kEECDH+aECDSA+AES', 'kEECDH+AES+aRSA', 'kEDH+aRSA+AES']
|
||||
}
|
||||
end
|
||||
it {is_expected.to contain_nova_config('console/ssl_ciphers').with_value('kEECDH+aECDSA+AES:kEECDH+AES+aRSA:kEDH+aRSA+AES') }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user