Vagrantfile: Fixed repeated OSD controller creation

pull/2078/head
Prisacari Dmitrii 2017-12-08 19:09:50 +02:00 committed by Guillaume Abrioux
parent 0ea1811f6f
commit a9981b4131
1 changed files with 8 additions and 3 deletions

5
Vagrantfile vendored
View File

@ -479,9 +479,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Virtualbox
osd.vm.provider :virtualbox do |vb|
# Create our own controller for consistency and to remove VM dependency
unless File.exist?("disk-#{i}-0.vdi")
# Adding OSD Controller;
# once the first disk is there assuming we don't need to do this
vb.customize ['storagectl', :id,
'--name', 'OSD Controller',
'--add', 'scsi']
end
(0..1).each do |d|
vb.customize ['createhd',
'--filename', "disk-#{i}-#{d}",