diff options
author | 2019-04-30 17:40:53 +0530 | |
---|---|---|
committer | 2019-05-20 18:14:40 +0530 | |
commit | a826fe833d3f2a8fe2673fa05811fe1a22baf045 (patch) | |
tree | da11a17c46ca9b8a002a52a290628574fa3f5eda /resources/extras | |
parent | 3e6bf7b64eea418c59959c18750261b815b2892c (diff) |
Feature: 19.04 part 1
Change-Id: Ibba924b8deca1f246b9dcb12d89d085b6fd33046
Signed-off-by: charan makkina <charan795m@gmail.com>
Diffstat (limited to 'resources/extras')
-rw-r--r-- | resources/extras/Vagrantfile | 62 | ||||
-rw-r--r-- | resources/extras/env.sh | 7 | ||||
-rw-r--r-- | resources/extras/install_prereq.sh | 39 |
3 files changed, 0 insertions, 108 deletions
diff --git a/resources/extras/Vagrantfile b/resources/extras/Vagrantfile deleted file mode 100644 index 969c91f..0000000 --- a/resources/extras/Vagrantfile +++ /dev/null @@ -1,62 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -Vagrant.configure(2) do |config| - - # Pick the right distro and bootstrap, default is ubuntu1604 - distro = ( ENV['DMM_VAGRANT_DISTRO'] || "ubuntu") - if distro == 'centos7' - config.vm.box = "puppetlabs/centos-7.2-64-nocm" - else - #config.vm.box = "fdio-csit/ubuntu-14.04.4_2016-05-25_1.0" - config.vm.box = "puppetlabs/ubuntu-16.04-64-nocm" - end - config.vm.box_check_update = false - - # Create DMM client and server VM's - config.vm.define "dmm-test-server" do |server| - server.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"install_prereq.sh") - server.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"../../scripts/build.sh"), :args => "/dmm vagrant" - end - config.vm.define "dmm-test-client" do |client| - client.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"install_prereq.sh") - client.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"../../scripts/build.sh"), :args => "/dmm vagrant" - end - - - # vagrant-cachier caches apt/yum etc to speed subsequent - # vagrant up - # to enable, run - # vagrant plugin install vagrant-cachier - # - if Vagrant.has_plugin?("vagrant-cachier") - config.cache.scope = :box - end - - # Define some physical ports for your VMs to be used by DPDK - nics = (ENV['DMM_VAGRANT_NICS'] || "2").to_i(10) - for i in 1..nics - config.vm.network "private_network", type: "dhcp" - end - - # use http proxy if avaiable - if ENV['http_proxy'] && Vagrant.has_plugin?("vagrant-proxyconf") - config.proxy.http = ENV['http_proxy'] - config.proxy.https = ENV['https_proxy'] - config.proxy.no_proxy = "localhost,127.0.0.1" - end - - vmcpu=(ENV['DMM_VAGRANT_VMCPU'] || 4) - vmram=(ENV['DMM_VAGRANT_VMRAM'] || 4096) - - config.ssh.forward_agent = true - config.ssh.forward_x11 = true - - config.vm.provider "virtualbox" do |vb| - vb.customize ["modifyvm", :id, "--ioapic", "on"] - vb.memory = "#{vmram}" - vb.cpus = "#{vmcpu}" - - config.vm.synced_folder "../../", "/dmm", type: "rsync" - end -end diff --git a/resources/extras/env.sh b/resources/extras/env.sh deleted file mode 100644 index 96ad346..0000000 --- a/resources/extras/env.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -#export DMM_VAGRANT_DISTRO="ubuntu1604" -export DMM_VAGRANT_DISTRO="centos7" -export DMM_VAGRANT_NICS=2 -export DMM_VAGRANT_VMCPU=4 -export DMM_VAGRANT_VMRAM=8192 diff --git a/resources/extras/install_prereq.sh b/resources/extras/install_prereq.sh deleted file mode 100644 index f2413ea..0000000 --- a/resources/extras/install_prereq.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -x -log_file="/tmp/install_log.txt-`date +'%Y-%m-%d_%H-%M-%S'`" -exec 1> >(tee -a "$log_file") 2>&1 - -if [ "$(uname)" <> "Darwin" ]; then - OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') - OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') -fi - -if [ "$OS_ID" == "ubuntu" ]; then - # Standard update + upgrade dance - cat << EOF >> /etc/apt/sources.list - deb http://in.archive.ubuntu.com/ubuntu/ trusty main restricted - deb-src http://in.archive.ubuntu.com/ubuntu/ trusty main restricted - deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates main restricted - deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-updates main restricted - deb http://in.archive.ubuntu.com/ubuntu/ trusty universe - deb-src http://in.archive.ubuntu.com/ubuntu/ trusty universe - deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates universe - deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-updates universe - deb http://in.archive.ubuntu.com/ubuntu/ trusty multiverse - deb-src http://in.archive.ubuntu.com/ubuntu/ trusty multiverse - deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates multiverse - deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-updates multiverse - deb http://in.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse - deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse - deb http://security.ubuntu.com/ubuntu trusty-security main restricted - deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted - deb http://security.ubuntu.com/ubuntu trusty-security universe - deb-src http://security.ubuntu.com/ubuntu trusty-security universe - deb http://security.ubuntu.com/ubuntu trusty-security multiverse - deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse - deb http://extras.ubuntu.com/ubuntu trusty main - deb-src http://extras.ubuntu.com/ubuntu trusty main -EOF -elif [ "$OS_ID" == "centos" ]; then - - echo centos -fi |