forked from drewkerrigan/mesos-erlang-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
executable file
·29 lines (27 loc) · 1.1 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Install these plugins
# vagrant plugin install vagrant-hostmanager
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#Setup hostmanager config to update the host files
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
config.vm.provision :hostmanager
config.vm.define 'ubuntu' do |node|
node.vm.hostname = 'ubuntu.local'
node.vm.network :private_network, ip: '192.168.42.42'
node.hostmanager.aliases = %w(ubuntu.local)
end
config.vm.box = "ubuntu/trusty64"
config.vm.provider :virtualbox do |vb, override|
vb.customize ["modifyvm", :id, "--memory", 8000, "--cpus", "4"]
override.vm.network :forwarded_port, guest: 5050, host: 5050
override.vm.network :forwarded_port, guest: 5051, host: 5051
override.vm.network :forwarded_port, guest: 8080, host: 8080
override.vm.network :forwarded_port, guest: 2181, host: 2181
end
config.vm.provision 'shell', path: 'provision.sh', run: 'once'
end