File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ Vagrant . configure ( VAGRANTFILE_API_VERSION ) do |config |
8
+
9
+ config . vm . define "redis1" do |redis1 |
10
+ redis1 . vm . box = "ubuntu/trusty64"
11
+ redis1 . vm . box_check_update = false
12
+ redis1 . vm . network "private_network" , ip : "192.168.50.40"
13
+ redis1 . vm . provision "ansible" do |ansible |
14
+ ansible . playbook = "vagrant/provisioning/master-playbook.yml"
15
+ end
16
+ end
17
+
18
+ config . vm . define "redis2" do |redis2 |
19
+ redis2 . vm . box = "ubuntu/trusty64"
20
+ redis2 . vm . box_check_update = false
21
+ redis2 . vm . network "private_network" , ip : "192.168.50.41"
22
+ redis2 . vm . provision "ansible" do |ansible |
23
+ ansible . playbook = "vagrant/provisioning/slave-playbook.yml"
24
+ end
25
+ end
26
+
27
+ config . vm . define "sentinel1" do |sentinel1 |
28
+ sentinel1 . vm . box = "ubuntu/trusty64"
29
+ sentinel1 . vm . box_check_update = false
30
+ sentinel1 . vm . network "private_network" , ip : "192.168.50.30"
31
+ sentinel1 . vm . provision "ansible" do |ansible |
32
+ ansible . playbook = "vagrant/provisioning/sentinel-playbook.yml"
33
+ end
34
+ end
35
+
36
+ end
You can’t perform that action at this time.
0 commit comments