1 # Copyright (c) 2016 Open Platform for NFV Project, Inc. and its contributors
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 # This class contains the platform differences for ovsdpdk
17 # and environment not commonly configured stuff
19 class ovsdpdk::params {
21 case $::operatingsystem {
23 $qemu_kvm = '/usr/bin/kvm'
24 # we are not removing packages as of now
25 #$remove_packages = [ 'openvswitch-switch', 'openvswitch-datapath-dkms', 'openvswitch-common' ]
26 $install_packages = [ 'autoconf', 'libtool', 'screen' ]
27 $openvswitch_service_name = 'openvswitch-switch'
28 $openvswitch_service_file = 'openvswitch-switch.conf'
29 $openvswitch_service_path = '/etc/init'
30 $openvswitch_agent = 'neutron-plugin-openvswitch-agent'
33 $qemu_kvm = '/usr/libexec/qemu-kvm'
34 # we are not removing packages as of now
35 $remove_packages = [ 'openvswitch' ]
36 $install_packages = [ 'pciutils', 'autoconf', 'libtool', 'screen' ]
37 $openvswitch_service_name = 'openvswitch'
38 $openvswitch_service_file = 'openvswitch.service'
39 $openvswitch_service_path = '/usr/lib/systemd/system'
40 $openvswitch_agent = 'neutron-openvswitch-agent'
43 fail("Unsupported os ${::operatingsystem}")
47 $ovs_db_conf_dir = '/etc/openvswitch'
48 $ovs_db_socket_dir = '/var/run/openvswitch'
49 $ovs_db_socket = "${ovs_db_socket_dir}/db.sock"
50 $ovs_db_conf = "${ovs_db_conf_dir}/conf.db"
53 $plugin_dir = '/etc/fuel/plugins/fuel-plugin-ovsnfv-0.0/puppet/modules/ovsdpdk'
55 $nova_conf_dir = '/etc/nova'
56 $nova_conf = "${nova_conf_dir}/nova.conf"
57 $ml2_ovs_conf = '/etc/neutron/plugins/ml2/openvswitch_agent.ini'
58 $ml2_conf = '/etc/neutron/plugins/ml2/ml2_conf.ini'
59 $neutron_l3_conf = '/etc/neutron/l3_agent.ini'
62 $ovs_install_dir = '/usr'
63 $ovs_git_repo = 'https://github.com/openvswitch/ovs.git'
64 $ovs_dir = "${dest}/ovs"
65 $ovs_git_tag = '88058f19ed9aadb1b22d26d93e46b3fd5eb1ad32'
68 $ovs_dpdk_git_repo = 'http://dpdk.org/git/dpdk'
69 $ovs_dpdk_git_tag = 'v2.1.0'
70 $ovs_dpdk_dir = "${dest}/DPDK-${ovs_dpdk_git_tag}"
73 $networking_ovs_dpdk_dir = "${dest}/networking-ovs-dpdk"
74 $ovs_plugin_git_tag = 'master'