From e2f240b484877a78eaf9f7cf673a1277007b884b Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Mon, 26 Sep 2016 12:10:19 -0400 Subject: [PATCH] Add xenial support to the Vagrantfile Local testing of the role is now possible using Ubuntu xenial with the command: vagrant up ubuntu1604 Change-Id: If4f3335986df214970e97435d779499eddda9436 --- Vagrantfile | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 54f0e352..9b19e66a 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,12 +1,26 @@ Vagrant.configure(2) do |config| - config.vm.box = "ubuntu/trusty64" + config.vm.provider "virtualbox" do |v| v.memory = 2048 v.cpus = 2 end - config.vm.provision "shell", inline: <<-SHELL - sudo su - - cd /vagrant - ./run_tests.sh - SHELL + + config.vm.define "ubuntu1404" do |trusty| + trusty.vm.box = "ubuntu/trusty64" + trusty.vm.provision "shell", inline: <<-SHELL + sudo su - + cd /vagrant + ./run_tests.sh + SHELL + end + + config.vm.define "ubuntu1604" do |xenial| + xenial.vm.box = "ubuntu/xenial64" + xenial.vm.provision "shell", inline: <<-SHELL + sudo su - + cd /vagrant + apt-get install -y python2.7 + ./run_tests.sh + SHELL + end end