fuel_plugin: Working version on Montreal POD
[ovsnfv.git] / fuel-plugin-ovsnfv / deployment_scripts / puppet / modules / ovsdpdk / manifests / params.pp
1 #
2 # This class contains the platform differences for ovsdpdk
3 # and environment not commonly configured stuff
4 #
5 class ovsdpdk::params {
6
7   case $::operatingsystem {
8     'Ubuntu': {
9       $qemu_kvm = '/usr/bin/kvm'
10       # we are not removing packages as of now
11       #$remove_packages = [ 'openvswitch-switch', 'openvswitch-datapath-dkms', 'openvswitch-common' ]
12       $install_packages = [ 'autoconf', 'libtool', 'screen' ]
13       $openvswitch_service_name = 'openvswitch-switch'
14       $openvswitch_service_file = 'openvswitch-switch.conf'
15       $openvswitch_service_path = '/etc/init'
16       $openvswitch_agent = 'neutron-plugin-openvswitch-agent'
17     }
18     'CentOS': {
19       $qemu_kvm = '/usr/libexec/qemu-kvm'
20       # we are not removing packages as of now
21       $remove_packages = [ 'openvswitch' ]
22       $install_packages = [ 'pciutils', 'autoconf', 'libtool', 'screen' ]
23       $openvswitch_service_name = 'openvswitch'
24       $openvswitch_service_file = 'openvswitch.service'
25       $openvswitch_service_path = '/usr/lib/systemd/system'
26       $openvswitch_agent = 'neutron-openvswitch-agent'
27     }
28     default: {
29       fail("Unsupported os ${::operatingsystem}")
30     }
31   }
32
33   $ovs_db_conf_dir          = '/etc/openvswitch'
34   $ovs_db_socket_dir        = '/var/run/openvswitch'
35   $ovs_db_socket            = "${ovs_db_socket_dir}/db.sock"
36   $ovs_db_conf              = "${ovs_db_conf_dir}/conf.db"
37
38   # General config
39   $plugin_dir               = '/etc/fuel/plugins/fuel-plugin-ovsnfv-0.0/puppet/modules/ovsdpdk'
40   $dest                     = '/opt/code'
41   $nova_conf_dir            = '/etc/nova'
42   $nova_conf                = "${nova_conf_dir}/nova.conf"
43   $ml2_ovs_conf             = '/etc/neutron/plugins/ml2/openvswitch_agent.ini'
44   $ml2_conf                 = '/etc/neutron/plugins/ml2/ml2_conf.ini'
45   $neutron_l3_conf          = '/etc/neutron/l3_agent.ini'
46
47   # OVS config
48   $ovs_install_dir          = '/usr'
49   $ovs_git_repo             = 'https://github.com/openvswitch/ovs.git'
50   $ovs_dir                  = "${dest}/ovs"
51   $ovs_git_tag              = '88058f19ed9aadb1b22d26d93e46b3fd5eb1ad32'
52
53   # DPDK config
54   $ovs_dpdk_git_repo        = 'http://dpdk.org/git/dpdk'
55   $ovs_dpdk_git_tag         = 'v2.1.0'
56   $ovs_dpdk_dir             = "${dest}/DPDK-${ovs_dpdk_git_tag}"
57
58   # PLUGIN config
59   $networking_ovs_dpdk_dir  = "${dest}/networking-ovs-dpdk"
60   $ovs_plugin_git_tag       = 'master'
61
62 }