summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2020-03-23 23:57:06 +0100
committerMichael Adam <obnox@samba.org>2020-03-25 22:32:23 +0100
commit40e4362289e10589e6b69284e0871d89b4d4ebaa (patch)
tree54cc48965cf820736277f33081ca9d7ac132b2f2
parent40b0cc49e6589b8624c34d046670fbfda801ebac (diff)
downloadsamba-integration-40e4362289e10589e6b69284e0871d89b4d4ebaa.tar.gz
samba-integration-40e4362289e10589e6b69284e0871d89b4d4ebaa.tar.xz
samba-integration-40e4362289e10589e6b69284e0871d89b4d4ebaa.zip
vagrant: don't configure a storage pool by default
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--vagrant/Vagrantfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 16b7043..2d60e52 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -6,7 +6,7 @@ NODES = 2
DISKS = 2
NODE_RAM = 1024
NODE_CPUS = 2
-LIBVIRT_STORAGE_POOL = "data"
+#LIBVIRT_STORAGE_POOL = "data"
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
@@ -30,7 +30,9 @@ Vagrant.configure("2") do |config|
driverletters = ('b'..'z').to_a
storage.vm.provider :libvirt do |lv|
- lv.storage_pool_name = "#{LIBVIRT_STORAGE_POOL}"
+ if defined?(LIBVIRT_STORAGE_POOL)
+ lv.storage_pool_name = "#{LIBVIRT_STORAGE_POOL}"
+ end
lv.storage :file, :device => "vd#{driverletters[d]}", :path => "disk-#{i}#{d}.disk", :size => '10G'
lv.memory = NODE_RAM
lv.cpus = NODE_CPUS