diff options
author | Billy O'Mahony <billy.o.mahony@intel.com> | 2016-01-06 17:00:41 +0000 |
---|---|---|
committer | Mark D. Gray <mark.d.gray@intel.com> | 2016-01-07 14:14:45 +0000 |
commit | 9c5d3a2ab72fa9553924ecaf70ae7ef0d1d562d0 (patch) | |
tree | fa7573a61d24cd0712920a04c07e2b48a1020644 /fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/manifests/params.pp | |
parent | ebf6ae51abdaa29eb8eaf9bc41a4187bac6ec0ff (diff) |
fuel plugin: Initial version
Change-Id: Ib41afff8f0b0f5e7c2f92f78cbdc48c99891b1ab
Signed-off-by: Mark D. Gray <mark.d.gray@intel.com>
Signed-off-by: Billy O'Mahony <billy.o.mahony@intel.com>
Signed-off-by: Michal Ptacek <michalx.ptacek@intel.com>
(cherry picked from commit 93f7683a2cd9b8020f8870dfc6b162b3d61c3fd2)
Diffstat (limited to 'fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/manifests/params.pp')
-rwxr-xr-x | fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/manifests/params.pp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/manifests/params.pp b/fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/manifests/params.pp new file mode 100755 index 0000000..3d7bdfa --- /dev/null +++ b/fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/manifests/params.pp @@ -0,0 +1,61 @@ +# +# 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' + $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' + +} |