]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Suppress Virtualbox disk creation if already present 621/head
authorMAA <FooBarQuaxx@users.noreply.github.com>
Sat, 12 Mar 2016 20:36:57 +0000 (23:36 +0300)
committerMAA <FooBarQuaxx@users.noreply.github.com>
Sat, 12 Mar 2016 20:36:57 +0000 (23:36 +0300)
Vagrantfile

index 1363096a495cdf101f733d95ada243575f230c0f..ccd5773f07bd285d73c0b484d8750e209883ea33 100644 (file)
@@ -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.