diff options
| author | Michael Adam <obnox@samba.org> | 2020-03-23 23:21:30 +0100 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2020-03-25 22:32:23 +0100 |
| commit | 8c5ecf4d736b76ef4bc674a03a642bbf832e44f2 (patch) | |
| tree | f88f9f06833a12fed9f6e08090082da478614c12 | |
| parent | 2f209b6cdfe89ee2dfeae3248a701107f00adfeb (diff) | |
Make storage pool for libvirt configurable
Signed-off-by: Michael Adam <obnox@samba.org>
| -rw-r--r-- | vagrant/Vagrantfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index c219a5c..16b7043 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -6,6 +6,7 @@ NODES = 2 DISKS = 2 NODE_RAM = 1024 NODE_CPUS = 2 +LIBVIRT_STORAGE_POOL = "data" Vagrant.configure("2") do |config| config.ssh.insert_key = false @@ -29,7 +30,7 @@ Vagrant.configure("2") do |config| driverletters = ('b'..'z').to_a storage.vm.provider :libvirt do |lv| - lv.storage_pool_name = "home-libvirt" + lv.storage_pool_name = "#{LIBVIRT_STORAGE_POOL}" lv.storage :file, :device => "vd#{driverletters[d]}", :path => "disk-#{i}#{d}.disk", :size => '10G' lv.memory = NODE_RAM lv.cpus = NODE_CPUS |
