diff --git a/vagrantfiles/Vagrantfile b/vagrantfiles/Vagrantfile index b3d9695..a93958c 100644 --- a/vagrantfiles/Vagrantfile +++ b/vagrantfiles/Vagrantfile @@ -49,6 +49,9 @@ Vagrant.configure('2') do |config| l.memory = $vmMemory # Add disks for libvirt here as no (workaround) plugin is needed as for Virtualbox if VAGRANT_DEFAULT_PROVIDER == 'libvirt' + if LIBVIRT_STORAGE_POOL != 'default' + l.storage_pool_name = "#{LIBVIRT_STORAGE_POOL}" + end (1..DISK_COUNT.to_i).each do |diskID| diskPath = "#{BOX_OS}-#{$hostname}-disk-#{diskID}.img" l. storage :file, diff --git a/vagrantfiles/Vagrantfile_vars b/vagrantfiles/Vagrantfile_vars index 2c4c7a4..c996f86 100644 --- a/vagrantfiles/Vagrantfile_vars +++ b/vagrantfiles/Vagrantfile_vars @@ -14,6 +14,9 @@ NODE_MEMORY_SIZE_GB = ENV['NODE_MEMORY_SIZE_GB'].to_i || 1 # currently only used by ubuntu $docker_version = '' +# Libvirt specific config +LIBVIRT_STORAGE_POOL = ENV['LIBVIRT_STORAGE_POOL'] || "default" + # Network MASTER_IP = ENV['MASTER_IP'] || '192.168.26.10' POD_NW_CIDR = ENV['POD_NW_CIDR'] || '10.244.0.0/16'