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
66 lines (49 loc) · 1.81 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
# -*- 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/pypi-minion"
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/mirror-minion"
s.run_highstate = true
end
end
end
if ENV['VAGRANT_POSTGRES_CLUSTER'] == '1'
config.vm.define "pg_master" do |pg_master|
pg_master.vm.network "private_network", ip: "192.168.57.5"
pg_master.vm.network "private_network", ip: "172.16.57.5"
pg_master.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/pg_cluster-master-minion"
s.run_highstate = true
end
end
config.vm.define "pg_slave" do |pg_slave|
pg_slave.vm.network "private_network", ip: "192.168.57.6"
pg_slave.vm.network "private_network", ip: "172.16.57.6"
pg_slave.vm.provision :salt do |s|
s.verbose = true
s.minion_config = "provisioning/salt/minion/pg_cluster-slave-minion"
s.run_highstate = true
end
end
end
end