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

24
Vagrantfile vendored
View File

@ -3,11 +3,12 @@
VAGRANTFILE_API_VERSION = '2' VAGRANTFILE_API_VERSION = '2'
NMONS = 3 NMONS = 3
NOSDS = 3 NOSDS = 3
NMDSS = 0 NMDSS = 0
NRGWS = 0 NRGWS = 0
SUBNET = '192.168.42' CLIENTS = 0
SUBNET = '192.168.42'
ansible_provision = proc do |ansible| ansible_provision = proc do |ansible|
ansible.playbook = 'site.yml' ansible.playbook = 'site.yml'
@ -39,6 +40,19 @@ end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'hashicorp/precise64' 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| (0..NRGWS - 1).each do |i|
config.vm.define "rgw#{i}" do |rgw| config.vm.define "rgw#{i}" do |rgw|
rgw.vm.hostname = "ceph-rgw#{i}" rgw.vm.hostname = "ceph-rgw#{i}"