Skip to content

Commit

Permalink
Make libvirt storage pool configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
lalbers committed Mar 20, 2020
1 parent 5f268db commit 6ccedd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vagrantfiles/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions vagrantfiles/Vagrantfile_vars
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 6ccedd0

Please sign in to comment.