From 64df495bb64a51474157226b15819065d74aec9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 19 Nov 2014 12:27:56 -0800 Subject: [PATCH] Introduce client configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a client VM for KRBD and RGW. Signed-off-by: Sébastien Han --- Vagrantfile | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index e4461b5c6..a553c4479 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,11 +3,12 @@ VAGRANTFILE_API_VERSION = '2' -NMONS = 3 -NOSDS = 3 -NMDSS = 0 -NRGWS = 0 -SUBNET = '192.168.42' +NMONS = 3 +NOSDS = 3 +NMDSS = 0 +NRGWS = 0 +CLIENTS = 0 +SUBNET = '192.168.42' ansible_provision = proc do |ansible| ansible.playbook = 'site.yml' @@ -39,6 +40,19 @@ end Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = 'hashicorp/precise64' + (0..CLIENTS - 1).each do |i| + config.vm.define "client#{i}" do |client| + client.vm.hostname = "ceph-client#{i}" + client.vm.network :private_network, ip: "#{SUBNET}.4#{i}" + client.vm.provider :virtualbox do |vb| + vb.customize ['modifyvm', :id, '--memory', '192'] + end + client.vm.provider :vmware_fusion do |v| + v.vmx['memsize'] = '192' + end + end + end + (0..NRGWS - 1).each do |i| config.vm.define "rgw#{i}" do |rgw| rgw.vm.hostname = "ceph-rgw#{i}"