forked from mantl/mantl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (28 loc) · 931 Bytes
/
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
30
31
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
def load_security
fname = File.join(File.dirname(__FILE__), "security.yml")
if !File.exist? fname
$stderr.puts "security.yml not found - please run `./security-setup` and try again."
exit 1
end
YAML.load_file(fname)
end
VAGRANT_PRIVATE_IP = "192.168.242.55"
Vagrant.configure(2) do |config|
# Prefer VirtualBox before VMware Fusion
config.vm.provider "virtualbox"
config.vm.provider "vmware_fusion"
config.vm.box = "CiscoCloud/microservices-infrastructure"
config.vm.synced_folder ".", "/vagrant", type: "rsync"
config.vm.network "private_network", :ip => VAGRANT_PRIVATE_IP
config.vm.provision "shell" do |s|
s.path = "vagrant/provision.sh"
s.args = VAGRANT_PRIVATE_IP
end
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--cpus', 1]
vb.customize ['modifyvm', :id, '--memory', 1536]
end
end