# -*- mode: ruby -*-
# vi: set ft=ruby :
# Download the dependency plugins automatically. Add additional multiple plugins seperated with space on following line
required_plugins = %w( vagrant-proxyconf )
required_plugins.each do |plugin|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
# 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|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
# config.vm.box = "ubuntu/wily64"
#config.vm.hostname = "mme-juju-dev"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a private network, which allows host-only access to the machine
# using a specific IP.
#config.vm.network "private_network", ip: "192.168.11.11"
#config.proxy.http = "http://10.159.32.155:8080/"
#config.proxy.https = "http://10.159.32.155:8080/"
config.vm.define "juju1" do |juju1|
juju1.vm.box = "ubuntu/trusty64"
juju1.vm.network "private_network", ip: "192.168.11.11"
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM:
vb.memory = "1024"
vb.cpus = "1"
end
end
config.vm.define "juju2" do |juju2|
juju2.vm.box = "ubuntu/trusty64"
juju2.vm.network "private_network", ip: "192.168.11.12"
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM:
vb.memory = "4096"
vb.cpus = "3"
end
end
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# sudo apt-get update
# sudo apt-get install -y apache2
# SHELL
#config.vm.provision "shell", path: "provision/bootstrap.sh", privileged: false
end