forked from dgruber/vagrantGridEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (31 loc) · 1.1 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.insert_key = false
config.vm.synced_folder ".", "/vagrant"
config.vm.define "execd2" do |execd2|
execd2.vm.box = "bento/centos-7.2"
execd2.vm.hostname = "execd2"
execd2.vm.network "private_network", ip: "192.168.10.101"
execd2.vm.provision "shell", path: "hostnames.sh"
end
config.vm.define "execd1" do |execd1|
execd1.vm.box = "bento/centos-7.2"
execd1.vm.hostname = "execd1"
execd1.vm.network "private_network", ip: "192.168.10.100"
execd1.vm.provision "shell", path: "hostnames.sh"
end
config.vm.define "master", primary: true do |master|
master.vm.box = "bento/centos-7.2"
master.vm.hostname = "master"
master.vm.network "private_network", ip: "192.168.10.99"
master.vm.provision "shell", path: "hostnames.sh"
master.vm.provision "shell", path: "installation.sh"
end
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.cpus = 4
vb.customize ["modifyvm", :id, "--memory", "512"]
end
end