Allow customization of DEFAULT/host
The 'host' setting is frequently changed in HA scenarios where multiple instances of the cinder services are meant to behave as a single one. Change-Id: Iaf5315a0d6532f3166b9a07fc61f41c6b0b15cc2
This commit is contained in:
parent
9cdc6f0eb9
commit
d3a93d4405
@ -208,6 +208,11 @@
|
|||||||
# 'cinder::backend::rdb::volume_tmp_dir' parameter.
|
# 'cinder::backend::rdb::volume_tmp_dir' parameter.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $::os_service_default
|
||||||
#
|
#
|
||||||
|
# [*host*]
|
||||||
|
# (optional) Name of this node. This can be an opaque identifier. It is
|
||||||
|
# not necessarily a host name, FQDN, or IP address.
|
||||||
|
# Defaults to $::os_service_default
|
||||||
|
#
|
||||||
# === Deprecated Parameters
|
# === Deprecated Parameters
|
||||||
#
|
#
|
||||||
# [*qpid_hostname*]
|
# [*qpid_hostname*]
|
||||||
@ -304,6 +309,7 @@ class cinder (
|
|||||||
$enable_v2_api = true,
|
$enable_v2_api = true,
|
||||||
$lock_path = $::cinder::params::lock_path,
|
$lock_path = $::cinder::params::lock_path,
|
||||||
$image_conversion_dir = $::os_service_default,
|
$image_conversion_dir = $::os_service_default,
|
||||||
|
$host = $::os_service_default,
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
$qpid_hostname = undef,
|
$qpid_hostname = undef,
|
||||||
$qpid_port = undef,
|
$qpid_port = undef,
|
||||||
@ -409,6 +415,7 @@ class cinder (
|
|||||||
'DEFAULT/storage_availability_zone': value => $storage_availability_zone;
|
'DEFAULT/storage_availability_zone': value => $storage_availability_zone;
|
||||||
'DEFAULT/default_availability_zone': value => $default_availability_zone_real;
|
'DEFAULT/default_availability_zone': value => $default_availability_zone_real;
|
||||||
'DEFAULT/image_conversion_dir': value => $image_conversion_dir;
|
'DEFAULT/image_conversion_dir': value => $image_conversion_dir;
|
||||||
|
'DEFAULT/host': value => $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
# SSL Options
|
# SSL Options
|
||||||
|
@ -254,4 +254,14 @@ describe 'cinder' do
|
|||||||
|
|
||||||
it { is_expected.to contain_cinder_config('DEFAULT/image_conversion_dir').with_value('/tmp/foo') }
|
it { is_expected.to contain_cinder_config('DEFAULT/image_conversion_dir').with_value('/tmp/foo') }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'with host' do
|
||||||
|
let :params do
|
||||||
|
req_params.merge({
|
||||||
|
:host => 'mystring',
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
it { is_expected.to contain_cinder_config('DEFAULT/host').with_value('mystring') }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user