forked from Percona-QA/package-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.old
205 lines (186 loc) · 6.74 KB
/
Vagrantfile.old
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# -*- mode: ruby -*-
# vi: set ft=ruby :
playbook = "playbooks/common_57.yml"
deb_distro = "sgallen/wily64"
#deb_distro = "bento/ubuntu-14.04"
deb1_playbook = "playbooks/pxc57.yml"
deb_common_playbook = "playbooks/pxc57_common.yml"
deb_garbd_playbook = "playbooks/pxc56_garbd.yml"
rhel_distro = "bento/centos-7"
rhel1_playbook = "playbooks/percona1.yml"
rhel_playbook = "playbooks/percona2.yml"
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most pxb configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.define :wheezy do |wheezy_config|
wheezy_config.vm.box = "bento/debian-7.10"
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
wheezy_config.vm.host_name = "wheezy"
end
config.vm.define :jessie do |jessie_config|
jessie_config.vm.box = "bento/debian-8.4"
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
jessie_config.vm.host_name = "jessie"
jessie_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024", "--ioapic", "on" ]
end
end
config.vm.define :precise do |precise_config|
precise_config.vm.box = "bento/ubuntu-12.04"
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
precise_config.vm.host_name = "precise"
end
config.vm.define :trusty do |trusty_config|
trusty_config.vm.box = "bento/ubuntu-14.04"
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
trusty_config.vm.host_name = "trusty"
trusty_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024", "--ioapic", "on" ]
end
end
config.vm.define :wily do |wily_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
wily_config.vm.box = "bento/ubuntu-15.10"
wily_config.vm.host_name = "wily"
wily_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024", "--ioapic", "on" ]
end
end
config.vm.define :xenial do |xenial_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
xenial_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024", "--ioapic", "on" ]
end
xenial_config.vm.box = "bento/ubuntu-16.04"
xenial_config.vm.host_name = "xenial"
end
config.vm.define :centos6 do |centos6_config|
centos6_config.vm.box = "bento/centos-6.7"
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
centos6_config.vm.host_name = "centos6"
end
config.vm.define :centos7 do |centos7_config|
centos7_config.vm.box = "bento/centos-7.2"
config.vm.provision "ansible" do |ansible|
ansible.playbook = playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
centos7_config.vm.host_name = "centos7"
end
config.vm.define :rhcsa do |rhcsa_config|
rhcsa_config.vm.box = "bento/centos-7.2"
rhcsa_config.vm.host_name = "centos7"
end
config.vm.define :pxc1 do |pxc1_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = deb1_playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
pxc1_config.vm.box = deb_distro
pxc1_config.vm.host_name = "pxc1"
pxc1_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048", "--ioapic", "on" ]
end
pxc1_config.vm.network :private_network, ip: "192.168.70.61"
end
config.vm.define :pxc2 do |pxc2_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = deb_common_playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
pxc2_config.vm.box = deb_distro
pxc2_config.vm.host_name = "pxc2"
pxc2_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048", "--ioapic", "on" ]
end
pxc2_config.vm.network :private_network, ip: "192.168.70.62"
end
config.vm.define :pxc3 do |pxc3_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = deb_common_playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
pxc3_config.vm.box = deb_distro
pxc3_config.vm.host_name = "pxc3"
pxc3_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048", "--ioapic", "on" ]
end
pxc3_config.vm.network :private_network, ip: "192.168.70.63"
end
config.vm.define :pxc4 do |pxc4_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = deb_garbd_playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
pxc4_config.vm.box = deb_distro
pxc4_config.vm.host_name = "pxc4"
pxc4_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048", "--ioapic", "on" ]
end
pxc4_config.vm.network :private_network, ip: "192.168.70.64"
end
config.vm.define :percona1 do |percona1_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = rhel1_playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
percona1_config.vm.box = rhel_distro
percona1_config.vm.host_name = "percona1"
percona1_config.vm.network :private_network, ip: "192.168.70.71"
end
config.vm.define :percona2 do |percona2_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = rhel_playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
percona2_config.vm.box = rhel_distro
percona2_config.vm.host_name = "percona2"
percona2_config.vm.network :private_network, ip: "192.168.70.72"
end
config.vm.define :percona3 do |percona3_config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = rhel_playbook
ansible.sudo = "true"
ansible.host_key_checking = "false"
end
percona3_config.vm.box = rhel_distro
percona3_config.vm.host_name = "percona3"
percona3_config.vm.network :private_network, ip: "192.168.70.73"
end
end