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