diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-07-24 14:09:57 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-07-24 14:09:57 +0000 |
commit | d982240bde03ca8624f94dbc46ff772f48fa255a (patch) | |
tree | f0fd0a6e9c48e6ca19414ce399c5d194e6db11e2 /puppet/manifests/overcloud_controller.pp | |
parent | e74b9fb33e2af161907eb92715af8091aa547fe3 (diff) | |
parent | c8c11a09f028ea763328d77ac334796caa4e4cbd (diff) |
Merge "NFS backend for Cinder"
Diffstat (limited to 'puppet/manifests/overcloud_controller.pp')
-rw-r--r-- | puppet/manifests/overcloud_controller.pp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp index 46f2641b..27b7328d 100644 --- a/puppet/manifests/overcloud_controller.pp +++ b/puppet/manifests/overcloud_controller.pp @@ -365,7 +365,25 @@ if hiera('step') >= 3 { } } - $cinder_enabled_backends = delete_undef_values([$cinder_iscsi_backend, $cinder_rbd_backend, $cinder_netapp_backend]) + if hiera('cinder_enable_nfs_backend', false) { + $cinder_nfs_backend = 'tripleo_nfs' + + if ($::selinux != "false") { + selboolean { 'virt_use_nfs': + value => on, + persistent => true, + } -> Package['nfs-utils'] + } + + package {'nfs-utils': } -> + cinder::backend::nfs { $cinder_nfs_backend : + nfs_servers => hiera('cinder_nfs_servers'), + nfs_mount_options => hiera('cinder_nfs_mount_options'), + nfs_shares_config => '/etc/cinder/shares-nfs.conf', + } + } + + $cinder_enabled_backends = delete_undef_values([$cinder_iscsi_backend, $cinder_rbd_backend, $cinder_netapp_backend, $cinder_nfs_backend]) class { '::cinder::backends' : enabled_backends => $cinder_enabled_backends, } |