summaryrefslogtreecommitdiffstats
path: root/manifests/profile
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-05-15 17:46:17 +0000
committerGerrit Code Review <review@openstack.org>2017-05-15 17:46:17 +0000
commitb8d86b7008b1a8a4f90391a19298ae8de80235c9 (patch)
treea6100dedcf56314d37704567e28606c838bf392f /manifests/profile
parentae2c883ac56aea5ce881a0f8a8721c9cda965f34 (diff)
parent2556c56b5b8bb84b1846683bb4a21881b35fad08 (diff)
Merge "vhostuser socket dir shall be created for vhostuserclient mode"
Diffstat (limited to 'manifests/profile')
-rw-r--r--manifests/profile/base/neutron/ovs.pp17
1 files changed, 16 insertions, 1 deletions
diff --git a/manifests/profile/base/neutron/ovs.pp b/manifests/profile/base/neutron/ovs.pp
index bec7e96..97eb8e9 100644
--- a/manifests/profile/base/neutron/ovs.pp
+++ b/manifests/profile/base/neutron/ovs.pp
@@ -23,12 +23,27 @@
# for more details.
# Defaults to hiera('step')
#
+# [*vhostuser_socket_dir*]
+# (Optional) vhostuser socket dir, The directory where $vhostuser_socket_dir
+# will be created with correct permissions, inorder to support vhostuser
+# client mode.
+
class tripleo::profile::base::neutron::ovs(
- $step = hiera('step'),
+ $step = hiera('step'),
+ $vhostuser_socket_dir = hiera('neutron::agents::ml2::ovs::vhostuser_socket_dir', undef)
) {
include ::tripleo::profile::base::neutron
if $step >= 5 {
+ if $vhostuser_socket_dir {
+ file { $vhostuser_socket_dir:
+ ensure => directory,
+ owner => 'qemu',
+ group => 'qemu',
+ mode => '0775',
+ }
+ }
+
include ::neutron::agents::ml2::ovs
# Optional since manage_service may be false and neutron server may not be colocated.