From: Sébastien Han Date: Thu, 6 Nov 2014 11:15:25 +0000 (+0100) Subject: Make RGW configurable in Vagrant X-Git-Tag: v1.0.0~317^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8fe3b972847d471dd2960c43abccbcc3a7024a23;p=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 --- diff --git a/Vagrantfile b/Vagrantfile index b981079e5..087d370a0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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