Fix Puppet Configuring NetApp Cinder Backend
It was incorrectly assumed that Puppet variables assigned to a defined class (as seen in cinder-netapp.yaml) would be applied to any resources created with that type. This is not how Puppet works. The full range of configuration parameters to cinder::backend::netapp have been added back in. They are still pulling from Hiera like they were intended before, but it needs to be a little more explicit for Puppet to be happy. Change-Id: I2e00eae829713b2dbb1e4a5f296b6d08d0c21100
This commit is contained in:
parent
82f04ec310
commit
e284daa1ff
@ -4,7 +4,7 @@ resource_registry:
|
||||
OS::TripleO::ControllerExtraConfigPre: ../puppet/extraconfig/pre_deploy/controller/cinder-netapp.yaml
|
||||
|
||||
parameter_defaults:
|
||||
CinderEnableNetappBackend: false
|
||||
CinderEnableNetappBackend: true
|
||||
CinderNetappBackendName: 'tripleo_netapp'
|
||||
CinderNetappLogin: ''
|
||||
CinderNetappPassword: ''
|
||||
|
@ -9,8 +9,8 @@ parameters:
|
||||
|
||||
# Config specific parameters, to be provided via parameter_defaults
|
||||
CinderEnableNetappBackend:
|
||||
type: string
|
||||
default: false
|
||||
type: boolean
|
||||
default: true
|
||||
CinderNetappBackendName:
|
||||
type: string
|
||||
default: 'tripleo_netapp'
|
||||
@ -89,7 +89,7 @@ resources:
|
||||
cinder::backend::netapp::title: {get_input: NetappBackendName}
|
||||
cinder::backend::netapp::netapp_login: {get_input: NetappLogin}
|
||||
cinder::backend::netapp::netapp_password: {get_input: NetappPassword}
|
||||
cinder::backend::netapp::netapp_hostname: {get_input: NetappServerHostname}
|
||||
cinder::backend::netapp::netapp_server_hostname: {get_input: NetappServerHostname}
|
||||
cinder::backend::netapp::netapp_server_port: {get_input: NetappServerPort}
|
||||
cinder::backend::netapp::netapp_size_multiplier: {get_input: NetappSizeMultiplier}
|
||||
cinder::backend::netapp::netapp_storage_family: {get_input: NetappStorageFamily}
|
||||
|
@ -343,12 +343,31 @@ if hiera('step') >= 3 {
|
||||
"${cinder_netapp_backend}/host": value => 'hostgroup';
|
||||
}
|
||||
|
||||
if hiera('cinder_netapp_nfs_shares', undef) {
|
||||
$cinder_netapp_nfs_shares = split(hiera('cinder_netapp_nfs_shares', undef), ',')
|
||||
if hiera('cinder::backend::netapp::nfs_shares', undef) {
|
||||
$cinder_netapp_nfs_shares = split(hiera('cinder::backend::netapp::nfs_shares', undef), ',')
|
||||
}
|
||||
|
||||
cinder::backend::netapp { $cinder_netapp_backend :
|
||||
nfs_shares => $cinder_netapp_nfs_shares,
|
||||
netapp_login => hiera('cinder::backend::netapp::netapp_login', undef),
|
||||
netapp_password => hiera('cinder::backend::netapp::netapp_password', undef),
|
||||
netapp_server_hostname => hiera('cinder::backend::netapp::netapp_server_hostname', undef),
|
||||
netapp_server_port => hiera('cinder::backend::netapp::netapp_server_port', undef),
|
||||
netapp_size_multiplier => hiera('cinder::backend::netapp::netapp_size_multiplier', undef),
|
||||
netapp_storage_family => hiera('cinder::backend::netapp::netapp_storage_family', undef),
|
||||
netapp_storage_protocol => hiera('cinder::backend::netapp::netapp_storage_protocol', undef),
|
||||
netapp_transport_type => hiera('cinder::backend::netapp::netapp_transport_type', undef),
|
||||
netapp_vfiler => hiera('cinder::backend::netapp::netapp_vfiler', undef),
|
||||
netapp_volume_list => hiera('cinder::backend::netapp::netapp_volume_list', undef),
|
||||
netapp_vserver => hiera('cinder::backend::netapp::netapp_vserver', undef),
|
||||
netapp_partner_backend_name => hiera('cinder::backend::netapp::netapp_partner_backend_name', undef),
|
||||
nfs_shares => $cinder_netapp_nfs_shares,
|
||||
nfs_shares_config => hiera('cinder::backend::netapp::nfs_shares_config', undef),
|
||||
netapp_copyoffload_tool_path => hiera('cinder::backend::netapp::netapp_copyoffload_tool_path', undef),
|
||||
netapp_controller_ips => hiera('cinder::backend::netapp::netapp_controller_ips', undef),
|
||||
netapp_sa_password => hiera('cinder::backend::netapp::netapp_sa_password', undef),
|
||||
netapp_storage_pools => hiera('cinder::backend::netapp::netapp_storage_pools', undef),
|
||||
netapp_eseries_host_type => hiera('cinder::backend::netapp::netapp_eseries_host_type', undef),
|
||||
netapp_webservice_path => hiera('cinder::backend::netapp::netapp_webservice_path', undef),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -694,12 +694,31 @@ if hiera('step') >= 3 {
|
||||
"${cinder_netapp_backend}/host": value => 'hostgroup';
|
||||
}
|
||||
|
||||
if hiera('cinder_netapp_nfs_shares', undef) {
|
||||
$cinder_netapp_nfs_shares = split(hiera('cinder_netapp_nfs_shares', undef), ',')
|
||||
if hiera('cinder::backend::netapp::nfs_shares', undef) {
|
||||
$cinder_netapp_nfs_shares = split(hiera('cinder::backend::netapp::nfs_shares', undef), ',')
|
||||
}
|
||||
|
||||
cinder::backend::netapp { $cinder_netapp_backend :
|
||||
nfs_shares => $cinder_netapp_nfs_shares,
|
||||
netapp_login => hiera('cinder::backend::netapp::netapp_login', undef),
|
||||
netapp_password => hiera('cinder::backend::netapp::netapp_password', undef),
|
||||
netapp_server_hostname => hiera('cinder::backend::netapp::netapp_server_hostname', undef),
|
||||
netapp_server_port => hiera('cinder::backend::netapp::netapp_server_port', undef),
|
||||
netapp_size_multiplier => hiera('cinder::backend::netapp::netapp_size_multiplier', undef),
|
||||
netapp_storage_family => hiera('cinder::backend::netapp::netapp_storage_family', undef),
|
||||
netapp_storage_protocol => hiera('cinder::backend::netapp::netapp_storage_protocol', undef),
|
||||
netapp_transport_type => hiera('cinder::backend::netapp::netapp_transport_type', undef),
|
||||
netapp_vfiler => hiera('cinder::backend::netapp::netapp_vfiler', undef),
|
||||
netapp_volume_list => hiera('cinder::backend::netapp::netapp_volume_list', undef),
|
||||
netapp_vserver => hiera('cinder::backend::netapp::netapp_vserver', undef),
|
||||
netapp_partner_backend_name => hiera('cinder::backend::netapp::netapp_partner_backend_name', undef),
|
||||
nfs_shares => $cinder_netapp_nfs_shares,
|
||||
nfs_shares_config => hiera('cinder::backend::netapp::nfs_shares_config', undef),
|
||||
netapp_copyoffload_tool_path => hiera('cinder::backend::netapp::netapp_copyoffload_tool_path', undef),
|
||||
netapp_controller_ips => hiera('cinder::backend::netapp::netapp_controller_ips', undef),
|
||||
netapp_sa_password => hiera('cinder::backend::netapp::netapp_sa_password', undef),
|
||||
netapp_storage_pools => hiera('cinder::backend::netapp::netapp_storage_pools', undef),
|
||||
netapp_eseries_host_type => hiera('cinder::backend::netapp::netapp_eseries_host_type', undef),
|
||||
netapp_webservice_path => hiera('cinder::backend::netapp::netapp_webservice_path', undef),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user