diff options
author | Emilien Macchi <emilien@redhat.com> | 2016-06-22 14:20:31 -0400 |
---|---|---|
committer | Emilien Macchi <emilien@redhat.com> | 2016-06-30 13:44:43 +0000 |
commit | 8f2176839cb204967a983239097e2654b64cb600 (patch) | |
tree | 5ba8995d6e5b7e5e916589ba5da09ea54148679a /manifests/profile/base/nova | |
parent | 3747f6ddea935fe3682b1ee57c48fbf51caadacc (diff) |
nova/compute: add NFS bits
Deploy NFS bits that were in THT before.
Change-Id: I75d68cc766ad274b16b22f43b7d34d02ab26de13
Diffstat (limited to 'manifests/profile/base/nova')
-rw-r--r-- | manifests/profile/base/nova/compute.pp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/manifests/profile/base/nova/compute.pp b/manifests/profile/base/nova/compute.pp index 579b474..16b61df 100644 --- a/manifests/profile/base/nova/compute.pp +++ b/manifests/profile/base/nova/compute.pp @@ -23,8 +23,13 @@ # for more details. # Defaults to hiera('step') # +# [*cinder_nfs_backend*] +# (Optional) Whether or not Cinder is backed by NFS. +# Defaults to hiera('cinder_enable_nfs_backend', false) +# class tripleo::profile::base::nova::compute ( - $step = hiera('step'), + $step = hiera('step'), + $cinder_nfs_backend = hiera('cinder_enable_nfs_backend', false), ) { if $step >= 4 { @@ -38,4 +43,17 @@ class tripleo::profile::base::nova::compute ( include ::nova::network::neutron } + # If NFS is used as a Cinder backend + if $cinder_nfs_backend { + ensure_packages('nfs-utils', { ensure => present }) + Package['nfs-utils'] -> Service['nova-compute'] + if str2bool($::selinux) { + selboolean { 'virt_use_nfs': + value => on, + persistent => true, + } + Selboolean['virt_use_nfs'] -> Package['nfs-utils'] + } + } + } |