# -*- mode: ruby -*-
# vi: set ft=ruby :
# This is a set of different vagrant setups that are primarily useful for package
# building and testing. The techniques here were borrowed from the Git Fusion
# team.
Vagrant.configure(2) do |config|
#For the db node
config.vm.define 'dbnode' do |config|
config.vm.hostname = 'db'
config.vm.box = "bento/ubuntu-16.04"
config.vm.communicator = "ssh"
config.ssh.keys_only = true
config.ssh.insert_key=true
# config.vm.network :public_network
config.vm.network :private_network, ip: '192.168.2.73'
config.vm.synced_folder '.', '/home/vagrant/hws'
config.vm.provider 'virtualbox' do |vb|
vb.memory = 4096
end
config.vm.provision "shell", path: "db.sh"
end
#For the Web node
config.vm.define 'webnode' do |config|
config.vm.hostname = 'web'
config.vm.box = "bento/ubuntu-16.04"
config.vm.communicator = "ssh"
config.ssh.keys_only = true
config.ssh.insert_key=true
# config.vm.network :public_network
config.vm.network :private_network, ip: '192.168.2.74'
config.vm.synced_folder '.', '/home/vagrant/hws'
config.vm.provider 'virtualbox' do |vb|
vb.memory = 4096
end
config.vm.provision "shell", path: "web.sh"
end
config.vm.define 'gconn' do |vagrant|
vagrant.vm.hostname = 'gconn'
vagrant.vm.box = 'ubuntu/trusty64'
vagrant.vm.communicator = "ssh"
config.ssh.insert_key=true
config.ssh.keys_only = true
# vagrant.vm.network :public_network
vagrant.vm.network :private_network, ip: '192.168.2.72'
vagrant.vm.synced_folder '.', '/home/vagrant/hws'
# We have real problems provisioning a machine with only 1GB RAM.
vagrant.vm.provider 'virtualbox' do |vb|
vb.memory = 4096
end
vagrant.vm.provision "shell", path: "gconn.sh"
end
end