diff options
author | 2015-06-08 15:31:29 +0000 | |
---|---|---|
committer | 2015-06-08 15:31:29 +0000 | |
commit | 33db97ccf9e44a43ace9f2259504f993ee2e812b (patch) | |
tree | b86fc87ab8621087b404db841d7e3f2d9d716e2b /puppet/manifests/overcloud_controller.pp | |
parent | fa477ef3807a373b175c4a1218c5507755f46f57 (diff) | |
parent | cac21c27aa11dd2c5c6b178ab8d16eadf5483760 (diff) |
Merge "Enable NetApp Backends in Cinder"
Diffstat (limited to 'puppet/manifests/overcloud_controller.pp')
-rw-r--r-- | puppet/manifests/overcloud_controller.pp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp index 52df94fc..19ed97fb 100644 --- a/puppet/manifests/overcloud_controller.pp +++ b/puppet/manifests/overcloud_controller.pp @@ -334,7 +334,23 @@ if hiera('step') >= 3 { } } - $cinder_enabled_backends = delete_undef_values([$cinder_iscsi_backend, $cinder_rbd_backend]) + if hiera('cinder_enable_netapp_backend', false) { + $cinder_netapp_backend = hiera('cinder::backend::netapp::title') + + cinder_config { + "${cinder_netapp_backend}/host": value => 'hostgroup'; + } + + if hiera('cinder_netapp_nfs_shares', undef) { + $cinder_netapp_nfs_shares = split(hiera('cinder_netapp_nfs_shares', undef), ',') + } + + cinder::backend::netapp { $cinder_netapp_backend : + nfs_shares => $cinder_netapp_nfs_shares, + } + } + + $cinder_enabled_backends = delete_undef_values([$cinder_iscsi_backend, $cinder_rbd_backend, $cinder_netapp_backend]) class { '::cinder::backends' : enabled_backends => $cinder_enabled_backends, } |