summaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/nova
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-04 13:56:11 +0000
committerGerrit Code Review <review@openstack.org>2016-07-04 13:56:12 +0000
commit09dca03c31e3552cf22b81d18889a33a25b9328c (patch)
tree87934f6a85fd60723fbd73bf742cda3c45078a1f /manifests/profile/base/nova
parent74d931de3a25fc48d832a2f975a7c34254c0961d (diff)
parent8f2176839cb204967a983239097e2654b64cb600 (diff)
Merge "nova/compute: add NFS bits"
Diffstat (limited to 'manifests/profile/base/nova')
-rw-r--r--manifests/profile/base/nova/compute.pp20
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']
+ }
+ }
+
}