How to use this box with Vagrant:
Vagrant.configure("2") do |config|
config.vm.box = "esss/devenv"
config.vm.box_version = "1.0.2"
end
vagrant init esss/devenv \
--box-version 1.0.2
vagrant up
This version was created almost 9 years ago.
Git tagged version appears in the Virtualbox name.
Vagrant.configure(2) do |config| config.ssh.password = "4N518L3" config.vm.network "forwarded_port", guest: 7878, host: 7878 config.vm.provider "virtualbox" do |vb| # Set the name seen in Virtualbox GUI vb.name = "Development-#{ENV['DEVENV_VERSION']}" # Set video memory vb.customize ["modifyvm", :id, "--vram", "64"] # Display the VirtualBox GUI when booting the machine vb.gui = true # Customize the amount of memory on the VM: vb.memory = "1024" end config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" if ENV["DEVENV_VERSION"] config.vm.provision :shell, :keep_color => true, :inline => 'export PYTHONUNBUFFERED=1 && export ANSIBLE_FORCE_COLOR=1 && sudo yum install git && sudo rpm -i --replacepkgs http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm && sudo yum install -y ansible && mkdir -p /etc/ansible/upgrading && cd /etc/ansible/upgrading && rm -rf /etc/ansible/upgrading/ics-ans-devenv && git clone --branch $1 https://bitbucket.org/europeanspallationsource/ics-ans-devenv.git && cd ics-ans-devenv/ && ansible-playbook -i "localhost," -c local --extra-vars "DEVENV_VERSION=$1 DEVENV_INSTITUTE=$2 DEVENV_SERVERIP=$3" devenv.yml', :args => "#{ENV['DEVENV_VERSION']} #{ENV['DEVENV_INSTITUTE']} #{ENV['DEVENV_SERVERIP']}" else config.vm.provision :shell, :inline => 'echo "Please set the DEVENV_VERSION environmental variable first to the version you wish to install or upgrade to."' end end