This repository has been archived by the owner on Aug 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Vagrantfile
88 lines (67 loc) · 2.53 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box"
config.vm.box = "centos-min"
config.vm.synced_folder "provisioning/salt/roots/", "/srv/"
unless ENV['VAGRANT_SKIP_PYPI'] == '1'
config.vm.define "pypi" do |pypi|
pypi.vm.network "private_network", ip: "192.168.57.11"
pypi.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/web/pypi"
s.run_highstate = true
end
end
config.vm.define "mirror" do |mirror|
mirror.vm.network "private_network", ip: "192.168.57.20"
mirror.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/web/mirror"
s.run_highstate = true
end
end
end
if ENV['VAGRANT_POSTGRES_CLUSTER'] == '1'
config.vm.define "pg_primary" do |pg_primary|
pg_primary.vm.network "private_network", ip: "192.168.57.5"
pg_primary.vm.network "private_network", ip: "172.16.57.5"
pg_primary.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/pg_cluster/primary"
s.run_highstate = true
end
end
config.vm.define "pg_standby_0" do |pg_standby_0|
pg_standby_0.vm.network "private_network", ip: "192.168.57.6"
pg_standby_0.vm.network "private_network", ip: "172.16.57.6"
pg_standby_0.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/pg_cluster/standby_0"
s.run_highstate = true
end
end
config.vm.define "pgpool_0" do |pgpool_0|
pgpool_0.vm.network "private_network", ip: "192.168.57.7"
pgpool_0.vm.network "private_network", ip: "172.16.57.7"
pgpool_0.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/pg_cluster/pgpool_0"
s.run_highstate = true
end
end
config.vm.define "pgpool_1" do |pgpool_1|
pgpool_1.vm.network "private_network", ip: "192.168.57.8"
pgpool_1.vm.network "private_network", ip: "172.16.57.8"
pgpool_1.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/pg_cluster/pgpool_1"
s.run_highstate = true
end
end
end
end