]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make RGW configurable in Vagrant 132/head
authorSébastien Han <sebastien.han@enovance.com>
Thu, 6 Nov 2014 11:15:25 +0000 (12:15 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Thu, 6 Nov 2014 11:15:25 +0000 (12:15 +0100)
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>
Vagrantfile

index b981079e5b594eecee7eedf8318b302fe425afb4..087d370a05bd1da49d8ad0e2f89525e36606afb1 100644 (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