Add parameters for multipath connection in cinder store
Adding following 2 parameters for cinder store when multipath usage is enabled in volume connection, - cinder_enforce_multipath - cinder_use_multipath Change-Id: Ic2c86e6a890b58ca7703ea3a3147c8d4ecf13953 (cherry picked from commit9466c801bc
) (cherry picked from commit4dca24b628
)
This commit is contained in:
parent
06eb278207
commit
048e9ab1c3
|
@ -61,6 +61,14 @@
|
||||||
# (Optional) A valid password for the user specified by `cinder_store_user_name'
|
# (Optional) A valid password for the user specified by `cinder_store_user_name'
|
||||||
# Defaults to hiera('glance::backend::cinder::cinder_store_password', undef)
|
# Defaults to hiera('glance::backend::cinder::cinder_store_password', undef)
|
||||||
#
|
#
|
||||||
|
# [*cinder_enforce_multipath*]
|
||||||
|
# (Optional) Set to True when multipathd is enabled
|
||||||
|
# Defaults to hiera('glance::backend::cinder::cinder_enforce_multipath', undef)
|
||||||
|
#
|
||||||
|
# [*cinder_use_multipath*]
|
||||||
|
# (Optional) Set to True when multipathd is enabled
|
||||||
|
# Defaults to hiera('glance::backend::cinder::cinder_use_multipath', undef)
|
||||||
|
#
|
||||||
# [*store_description*]
|
# [*store_description*]
|
||||||
# (Optional) Provides constructive information about the store backend to
|
# (Optional) Provides constructive information about the store backend to
|
||||||
# end users.
|
# end users.
|
||||||
|
@ -83,6 +91,8 @@ class tripleo::profile::base::glance::backend::cinder (
|
||||||
$cinder_store_project_name = hiera('glance::backend::cinder::cinder_store_project_name', undef),
|
$cinder_store_project_name = hiera('glance::backend::cinder::cinder_store_project_name', undef),
|
||||||
$cinder_store_user_name = hiera('glance::backend::cinder::cinder_store_user_name', undef),
|
$cinder_store_user_name = hiera('glance::backend::cinder::cinder_store_user_name', undef),
|
||||||
$cinder_store_password = hiera('glance::backend::cinder::cinder_store_password', undef),
|
$cinder_store_password = hiera('glance::backend::cinder::cinder_store_password', undef),
|
||||||
|
$cinder_enforce_multipath = hiera('glance::backend::cinder::cinder_enforce_multipath', undef),
|
||||||
|
$cinder_use_multipath = hiera('glance::backend::cinder::cinder_use_multipath', undef),
|
||||||
$store_description = hiera('tripleo::profile::base::glance::api::glance_store_description', 'Cinder store'),
|
$store_description = hiera('tripleo::profile::base::glance::api::glance_store_description', 'Cinder store'),
|
||||||
$step = Integer(hiera('step')),
|
$step = Integer(hiera('step')),
|
||||||
) {
|
) {
|
||||||
|
@ -107,6 +117,8 @@ class tripleo::profile::base::glance::backend::cinder (
|
||||||
cinder_store_project_name => $cinder_store_project_name,
|
cinder_store_project_name => $cinder_store_project_name,
|
||||||
cinder_store_user_name => $cinder_store_user_name,
|
cinder_store_user_name => $cinder_store_user_name,
|
||||||
cinder_store_password => $cinder_store_password,
|
cinder_store_password => $cinder_store_password,
|
||||||
|
cinder_enforce_multipath => $cinder_enforce_multipath,
|
||||||
|
cinder_use_multipath => $cinder_use_multipath,
|
||||||
store_description => $store_description_real,
|
store_description => $store_description_real,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,8 @@ describe 'tripleo::profile::base::glance::backend::cinder' do
|
||||||
:cinder_store_project_name => 'services',
|
:cinder_store_project_name => 'services',
|
||||||
:cinder_store_user_name => 'glance',
|
:cinder_store_user_name => 'glance',
|
||||||
:cinder_store_password => 'glance_password',
|
:cinder_store_password => 'glance_password',
|
||||||
|
:cinder_enforce_multipath => true,
|
||||||
|
:cinder_use_multipath => true,
|
||||||
:step => 4,
|
:step => 4,
|
||||||
} }
|
} }
|
||||||
|
|
||||||
|
@ -61,6 +63,8 @@ describe 'tripleo::profile::base::glance::backend::cinder' do
|
||||||
:cinder_store_project_name => 'services',
|
:cinder_store_project_name => 'services',
|
||||||
:cinder_store_user_name => 'glance',
|
:cinder_store_user_name => 'glance',
|
||||||
:cinder_store_password => 'glance_password',
|
:cinder_store_password => 'glance_password',
|
||||||
|
:cinder_enforce_multipath => true,
|
||||||
|
:cinder_use_multipath => true,
|
||||||
:store_description => 'Cinder store',
|
:store_description => 'Cinder store',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue