summaryrefslogtreecommitdiffstats
path: root/fuel-plugin-ovsnfv/deployment_scripts/puppet
diff options
context:
space:
mode:
authorBilly O'Mahony <billy.o.mahony@intel.com>2016-02-02 11:52:52 +0000
committerBilly O'Mahony <billy.o.mahony@intel.com>2016-02-05 14:57:42 +0000
commitf3099a30bf435f8d256ad236b93ae9cab7c1e241 (patch)
tree8756b702d0f5ea4c154108608b8a7e1ae30c9b41 /fuel-plugin-ovsnfv/deployment_scripts/puppet
parentf941469a5d82c058290c4b4af0f23100294a0a49 (diff)
fuel-plugin: Add config item for NIC used by OVS-DPDK
Change-Id: I7e8daa47eee658efd88922840fdcf21b8b38acd5 Signed-off-by: Billy O'Mahony <billy.o.mahony@intel.com> Reviewed-by: Mark D. Gray <mark.d.gray@intel.com> Reviewed-by: Michal Ptacek <michalx.ptacek@intel.com> Reviewed-by: Michal Skalski <mskalski@mirantis.com> Reviewed-by: Jonas Bjurel <jonas.bjurel@ericsson.com> (cherry picked from commit 6ec3a89b379eb7c8e463d2d3f3240ec50ef15a3f)
Diffstat (limited to 'fuel-plugin-ovsnfv/deployment_scripts/puppet')
-rw-r--r--fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp b/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp
index 62c5766..d57002b 100644
--- a/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp
+++ b/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp
@@ -1,9 +1,11 @@
$fuel_settings = parseyaml(file('/etc/astute.yaml'))
$master_ip = $::fuel_settings['master_ip']
+$ovs_ifname = $::fuel_settings[fuel-plugin-ovsnfv][fuel-plugin-ovsnfv_text]
+
if $operatingsystem == 'Ubuntu' {
class { '::ovsdpdk':
- ovs_bridge_mappings => 'default:ens1f1',
+ ovs_bridge_mappings => "default:$ovs_ifname",
ovs_socket_mem => '512,512',
ovs_num_hugepages => '2048',
compute => 'True',