Skip to content

Commit f047027

Browse files
committed
Add support for custom libvirt volume pool name
Allow users to configure a custom libvirt storage pool name instead of the hardcoded "oooq_pool" default. This is useful for environments that require specific storage pool naming conventions or want to use existing pools. Changes: - Add LIBVIRT_VOLUME_POOL environment variable with default "oooq_pool" - Pass libvirt_volume_pool to ansible-playbook in 02_configure_host.sh - Document the new variable in config_example.sh
1 parent 1e2c202 commit f047027

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

02_configure_host.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ ansible-playbook \
139139
-e "num_workers=$NUM_WORKERS" \
140140
-e "num_extraworkers=$NUM_EXTRA_WORKERS" \
141141
-e "libvirt_firmware=$LIBVIRT_FIRMWARE" \
142+
-e "libvirt_volume_pool=$LIBVIRT_VOLUME_POOL" \
142143
-e "virthost=$HOSTNAME" \
143144
-e "vm_platform=$NODES_PLATFORM" \
144145
-e "sushy_ignore_boot_device=$REDFISH_EMULATOR_IGNORE_BOOT_DEVICE" \

common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ ROOT_DISK_NAME=${ROOT_DISK_NAME-"/dev/sda"}
250250
# Length of DHCP leases
251251
export DHCP_LEASE_EXPIRY=${DHCP_LEASE_EXPIRY:-60}
252252
export LIBVIRT_FIRMWARE=${LIBVIRT_FIRMWARE:-uefi}
253+
export LIBVIRT_VOLUME_POOL=${LIBVIRT_VOLUME_POOL:-oooq_pool}
253254

254255
FILESYSTEM=${FILESYSTEM:="/"}
255256

config_example.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,13 @@ set -x
645645
#
646646
# export VM_EXTRADISKS_SIZE="10G"
647647

648+
# LIBVIRT_VOLUME_POOL -
649+
# Configure the name of the libvirt storage pool where VM disk images will be stored.
650+
# This is useful if you want to use a custom storage pool instead of the default.
651+
# Default: "oooq_pool"
652+
#
653+
# export LIBVIRT_VOLUME_POOL="my_custom_pool"
654+
648655
################################################################################
649656
## Image Registry Settings
650657
##

0 commit comments

Comments
 (0)