infra-ansible/Vagrantfile
Simon McCartney e49b679956 Reworked setup_env.sh to support Debian & Darwin/OSX
* Linux/Debian - ensure python-pip & python-dev are installed
* LinuxRHEL/CentOS - ensure python-virtualenv & python-devel are
  installed
* Darwin/OSX - check & exit if pip not installed
* Always rebuild the venv
* Dropped the path on wget, to allow for platform path differences
* Dropped the -N on wget, as it has no effect when using -O and
  github aren't returning the Last-Modified header

Change-Id: I221965ee1b1776d46f4b6fba00ffb7069e5b34f8
2016-03-12 23:10:46 +00:00

23 lines
821 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# vagrant box to sanity check setup_env.sh
config.vm.define :trusty64, autostart: false do |trusty|
trusty.vm.box = "ubuntu/trusty64"
trusty.vm.provision "shell", :inline => "apt-get update -y"
trusty.vm.provision "shell", :inline => "cd /vagrant ; ./setup_env.sh"
end
# vagrant box to sanity check setup_env.sh
config.vm.define :centos7, autostart: false do |centos|
centos.vm.box = "centos/7"
centos.vm.provision "shell", :inline => "cd /home/vagrant/sync ; ./setup_env.sh"
end
end