From: MAA Date: Sat, 12 Mar 2016 20:36:57 +0000 (+0300) Subject: Suppress Virtualbox disk creation if already present X-Git-Tag: v1.0.2~2^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=45eadf003b23abf0414004184f4db4fa1ca4d1e0;p=ceph-ansible.git Suppress Virtualbox disk creation if already present --- diff --git a/Vagrantfile b/Vagrantfile index 1363096a4..ccd5773f0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -206,7 +206,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| (0..1).each do |d| vb.customize ['createhd', '--filename', "disk-#{i}-#{d}", - '--size', '11000'] + '--size', '11000'] unless File.exist?("disk-#{i}-#{d}.vdi") # Controller names are dependent on the VM being built. # It is set when the base box is made in our case ubuntu/trusty64. # Be careful while changing the box.