Make RGW configurable in Vagrant

Depending on what we want to test, it might be handy to simply disable
the creation of a specific virtual machine. Now if NRGWS is set to 0
this will disable it.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
pull/132/head
Sébastien Han 2014-11-06 12:15:25 +01:00
parent 55f964d75b
commit 8fe3b97284
1 changed files with 11 additions and 8 deletions

19
Vagrantfile vendored
View File

@ -5,6 +5,7 @@ VAGRANTFILE_API_VERSION = '2'
NMONS = 3
NOSDS = 3
NRGWS = 0
ansible_provision = proc do |ansible|
ansible.playbook = 'site.yml'
@ -35,14 +36,16 @@ end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'hashicorp/precise64'
config.vm.define :rgw do |rgw|
rgw.vm.network :private_network, ip: '192.168.42.2'
rgw.vm.host_name = 'ceph-rgw'
rgw.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '192']
end
rgw.vm.provider :vmware_fusion do |v|
v.vmx['memsize'] = '192'
(0..NRGWS - 1).each do |i|
config.vm.define :rgw do |rgw|
rgw.vm.network :private_network, ip: '192.168.42.2'
rgw.vm.host_name = 'ceph-rgw'
rgw.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '192']
end
rgw.vm.provider :vmware_fusion do |v|
v.vmx['memsize'] = '192'
end
end
end