forked from ianunruh/monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (33 loc) · 1.57 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
30
31
32
33
34
35
36
37
38
39
40
41
42
# vim: ft=ruby
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure VAGRANTFILE_API_VERSION do |config|
config.vm.box = "trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
#find . -type f -print0 | xargs -0 dos2unix
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--cpus", "2"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on", "--natdnshostresolver1", "on"]
end
config.vm.define "cacher" do |box|
box.vm.hostname = "VmCache"
box.vm.network :private_network, ip: "192.168.12.13"
# box.vm.network "forwarded_port", guest: 3142, host: 3142, auto_correct: true
box.vm.provision "shell", inline: "cd /vagrant && ./install_apt-cache.sh Server"
end
config.vm.define "monitoring" do |box|
box.vm.hostname = "monitoring"
box.vm.network :private_network, ip: "192.168.12.10"
box.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "2048"]
end
box.vm.provision "shell", inline: "cd /vagrant && ./install_apt-cache.sh client forcedIP 192.168.12.13"
box.vm.provision :shell, inline: "cd /vagrant && ./install-all-server-with-kale.sh"
end
config.vm.define "app1" do |box|
box.vm.hostname = "app1"
box.vm.network :private_network, ip: "192.168.12.11"
box.vm.provision "shell", inline: "cd /vagrant && ./install_apt-cache.sh client forcedIP 192.168.12.13"
box.vm.provision :shell, inline: "cd /vagrant && ./install-all-client.sh"
end
end