-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathVagrantfile
142 lines (112 loc) · 4.23 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#
# TimeService ONE
#
config.vm.define :timeservice1 do |timeservice1|
timeservice1.vm.box = "hashicorp/precise32"
timeservice1.vm.hostname = 'timeservice-1-serv.localhost.localdomain'
timeservice1.vm.network :private_network, ip: "192.168.60.60"
timeservice1.vm.provider "virtualbox" do |vb|
vb.memory = 512
end
timeservice1.vm.synced_folder "exchange", "/exchange"
timeservice1.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests/"
puppet.manifest_file = "ts1.pp"
puppet.module_path = "puppet/modules"
end
end
#
# TimeService two
#
config.vm.define :timeservice2 do |timeservice2|
timeservice2.vm.box = "hashicorp/precise32"
timeservice2.vm.hostname = 'timeservice-2-serv.localhost.localdomain'
timeservice2.vm.network :private_network, ip: "192.168.60.70"
timeservice2.vm.provider "virtualbox" do |vb|
vb.memory = 512
end
timeservice2.vm.synced_folder "exchange", "/exchange"
timeservice2.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests/"
puppet.manifest_file = "ts2.pp"
puppet.module_path = "puppet/modules"
end
end
#
# TimeService three
#
config.vm.define :timeservice3 do |timeservice3|
timeservice3.vm.box = "hashicorp/precise32"
timeservice3.vm.hostname = 'timeservice-3-serv.localhost.localdomain'
timeservice3.vm.network :private_network, ip: "192.168.60.100"
timeservice3.vm.provider "virtualbox" do |vb|
vb.memory = 512
end
timeservice3.vm.synced_folder "exchange", "/exchange"
timeservice3.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests/"
puppet.manifest_file = "ts3.pp"
puppet.module_path = "puppet/modules"
end
end
#
# HA Proxy
#
config.vm.define :haproxy do |haproxy|
haproxy.vm.box = "hashicorp/precise32"
haproxy.vm.hostname = "haproxy-serv.localhost.localdomain"
haproxy.vm.network :private_network, ip: "192.168.60.50"
haproxy.vm.network :forwarded_port, guest: 80, host: 10080, auto_correct: false
haproxy.vm.provider "virtualbox" do |vb|
vb.memory = 256
end
haproxy.vm.synced_folder "exchange", "/exchange"
haproxy.vm.synced_folder "templates", "/templates"
haproxy.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests/"
puppet.manifest_file = "ha.pp"
puppet.module_path = "puppet/modules"
end
end
#
# Consul Web UI
config.vm.define :webui do |webui|
webui.vm.box = "hashicorp/precise32"
webui.vm.hostname = "webui-serv.localhost.localdomain"
webui.vm.network :private_network, ip: "192.168.60.90"
webui.vm.network :forwarded_port, guest: 8500, host: 8500, auto_correct: false
webui.vm.provider "virtualbox" do |vb|
vb.memory = 1024
end
webui.vm.synced_folder "exchange", "/exchange"
webui.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests/"
puppet.manifest_file = "ui.pp"
puppet.module_path = "puppet/modules"
end
end
#
#
# Consul it self
#
config.vm.define :consul do |consul|
consul.vm.box = "hashicorp/precise32"
consul.vm.hostname = "consul-serv.localhost.localdomain"
consul.vm.network :private_network, ip: "192.168.60.80"
consul.vm.provider "virtualbox" do |vb|
vb.memory = 1024
end
consul.vm.synced_folder "exchange", "/exchange"
consul.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests/"
puppet.manifest_file = "consul.pp"
puppet.module_path = "puppet/modules"
end
end
end
# end of file ;-)