diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2016-06-21 03:03:32 +0800 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2016-06-21 03:05:17 +0800 |
commit | 675eef731a098f83aa98c2021b151b7e5ba1da7d (patch) | |
tree | 77593df19c82bad2844743034600a93aa0255239 /fuel-plugin/vagrant | |
parent | 3ec9f7fbd9ed74126ae92be3e7d4c16b39674987 (diff) |
Add fuel plugin for Yardstick
1. fuel can deploy yardstick
2. todo: fuel run yardstick
Change-Id: If1a4b178187d78bdc2d4c3b6469faff78dc51ead
Signed-off-by: Chou, David J <david.j.chou@intel.com>
Signed-off-by: Hinman, John <john.hinman@intel.com>
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'fuel-plugin/vagrant')
-rw-r--r-- | fuel-plugin/vagrant/Vagrantfile | 21 | ||||
-rwxr-xr-x | fuel-plugin/vagrant/build_fuel_plugin.sh | 16 |
2 files changed, 37 insertions, 0 deletions
diff --git a/fuel-plugin/vagrant/Vagrantfile b/fuel-plugin/vagrant/Vagrantfile new file mode 100644 index 000000000..271ff7937 --- /dev/null +++ b/fuel-plugin/vagrant/Vagrantfile @@ -0,0 +1,21 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! +VAGRANTFILE_API_VERSION = "2" + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + + config.vm.box = "trusty-server-cloudimg-amd64" + config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" + + config.vm.define "fuel" do | h | + h.vm.host_name = "fuel" + h.vm.provision :shell, :inline => "/vagrant/build_fuel_plugin.sh", privileged: false + h.vm.synced_folder "../..", "/yardstick" + h.vm.provider :virtualbox do |v| + v.customize ["modifyvm", :id, "--memory", 4096] + v.customize ["modifyvm", :id, "--cpus", 4] + end + end +end diff --git a/fuel-plugin/vagrant/build_fuel_plugin.sh b/fuel-plugin/vagrant/build_fuel_plugin.sh new file mode 100755 index 000000000..b016176fb --- /dev/null +++ b/fuel-plugin/vagrant/build_fuel_plugin.sh @@ -0,0 +1,16 @@ +#!/bin/bash +sudo apt-get update -y +sudo apt-get install createrepo rpm dpkg-dev -y +sudo apt-get install python-setuptools -y +sudo apt-get install python-pip -y +sudo easy_install pip +sudo pip install fuel-plugin-builder +sudo apt-get install ruby -y +sudo gem install rubygems-update +sudo gem install fpm +sudo apt-get install docker.io -y +cp -r /yardstick /home/vagrant +cd /home/vagrant/yardstick/fuel-plugin; +rm -rf vagrant/.vagrant +fpb --debug --build . +cp *.rpm /vagrant |