-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
50 lines (38 loc) · 1.51 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
43
44
45
46
47
48
49
50
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "puppetlabs/centos-6.6-64-nocm"
config.hostmanager.enabled = true
config.vm.provision "shell",
inline: "sed -ri 's|127.0.0.1([[:space:]]+).*localhost |127.0.0.1\\1localhost |' /etc/hosts"
config.vm.define "head" do |head|
head.vm.provision "shell", path: "data/vagrant-head.sh"
head.vm.host_name = "head"
head.vm.network "private_network", ip: "192.168.51.100"
end
config.vm.define "worker1" do |worker1|
worker1.vm.provision "shell", path: "data/vagrant-worker.sh"
worker1.vm.host_name = "worker1"
worker1.vm.network "private_network", ip: "192.168.51.101"
end
config.vm.define "worker2" do |worker2|
worker2.vm.provision "shell", path: "data/vagrant-worker.sh"
worker2.vm.host_name = "worker2"
worker2.vm.network "private_network", ip: "192.168.51.102"
end
config.vm.define "worker3" do |worker3|
worker3.vm.provision "shell", path: "data/vagrant-worker.sh"
worker3.vm.host_name = "worker3"
worker3.vm.network "private_network", ip: "192.168.51.103"
end
config.vm.define "worker4" do |worker4|
worker4.vm.provision "shell", path: "data/vagrant-worker.sh"
worker4.vm.host_name = "worker4"
worker4.vm.network "private_network", ip: "192.168.51.104"
end
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
end