-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
36 lines (25 loc) · 734 Bytes
/
Vagrantfile
File metadata and controls
36 lines (25 loc) · 734 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.berkshelf.enabled = true
config.vm.define :master do |master|
master.vm.box = "centos64-ruby2"
master.vm.hostname = "master-postgresql"
master.vm.network :private_network, ip: "192.168.199.1"
master.vm.provision "chef_solo" do |chef|
chef.add_recipe "postgresql-lab"
chef.json = {
}
end
end
config.vm.define :slave do |slave|
slave.vm.box = "centos64-ruby2"
slave.vm.hostname = "slave-postgresql"
slave.vm.network :private_network, ip: "192.168.199.2"
slave.vm.provision "chef_solo" do |chef|
chef.add_recipe "postgresql-lab"
chef.json = {
}
end
end
end