Introduce client configuration

Introduce a client VM for KRBD and RGW.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
pull/153/head
Sébastien Han 2014-11-19 12:27:56 -08:00
parent 9b2f1366cd
commit 64df495bb6
1 changed files with 19 additions and 5 deletions

14
Vagrantfile vendored
View File

@ -7,6 +7,7 @@ NMONS = 3
NOSDS = 3
NMDSS = 0
NRGWS = 0
CLIENTS = 0
SUBNET = '192.168.42'
ansible_provision = proc do |ansible|
@ -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}"