-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
47 lines (44 loc) · 1.4 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "peer1" do |peer1|
peer1.vm.box = "debian/stretch64"
peer1.vm.hostname = "peer1"
peer1.vm.network "private_network", ip: "10.0.0.10"
peer1.vm.network "private_network", ip: "10.0.100.10"
peer1.vm.provision "chef_zero" do |chef|
chef.node_name = "peer1"
chef.data_bags_path = "data_bags"
chef.nodes_path = "nodes"
chef.roles_path = "roles"
chef.synced_folder_type = "rsync"
chef.version = "14.12.9"
end
end
config.vm.define "peer2" do |peer2|
peer2.vm.box = "debian/stretch64"
peer2.vm.hostname = "peer2"
peer2.vm.network "private_network", ip: "10.0.0.11"
peer2.vm.provision "chef_zero" do |chef|
chef.node_name = "peer2"
chef.data_bags_path = "data_bags"
chef.nodes_path = "nodes"
chef.roles_path = "roles"
chef.synced_folder_type = "rsync"
chef.version = "14.12.9"
end
end
config.vm.define "peer3" do |peer3|
peer3.vm.box = "debian/stretch64"
peer3.vm.hostname = "peer3"
peer3.vm.network "private_network", ip: "10.0.100.11"
peer3.vm.provision "chef_zero" do |chef|
chef.node_name = "peer3"
chef.data_bags_path = "data_bags"
chef.nodes_path = "nodes"
chef.roles_path = "roles"
chef.synced_folder_type = "rsync"
chef.version = "14.12.9"
end
end
end