-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (21 loc) · 1.04 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
Vagrant.configure("2") do |config|
config.vm.define "centos-node" do |node|
node.vm.box = "bento/centos-7.3"
node.vm.network "private_network", ip: "172.16.0.20"
node.vm.provision "file", source: "ssh/id_rsa.pub", destination: "/home/vagrant/.ssh/id_rsa.pub"
node.vm.provision "shell", path: "provision/node.sh"
end
config.vm.define "ubuntu-node" do |node|
node.vm.box = "bento/ubuntu-14.04"
node.vm.network "private_network", ip: "172.16.0.30"
node.vm.provision "file", source: "ssh/id_rsa.pub", destination: "/home/vagrant/.ssh/id_rsa.pub"
node.vm.provision "shell", path: "provision/node.sh"
end
config.vm.define "control-server" do |node|
node.vm.box = "bento/centos-7.3"
node.vm.network "private_network", ip: "172.16.0.10"
node.vm.provision "file", source: "ssh/id_rsa", destination: "/home/vagrant/.ssh/id_rsa"
node.vm.provision "file", source: "ssh/id_rsa.pub", destination: "/home/vagrant/.ssh/id_rsa.pub"
node.vm.provision "shell", path: "provision/control-server.sh"
end
end