Merge pull request #153 from leseb/add-client

Introduce client configuration
pull/154/head
Leseb 2014-11-19 12:29:45 -08:00
commit ea96adf314
1 changed files with 19 additions and 5 deletions

24
Vagrantfile vendored
View File

@ -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}"