mirror of https://github.com/ceph/ceph-ansible.git
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
parent
55f964d75b
commit
8fe3b97284
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue