From 53063d41eb1d3c6bf958c4a0ddade7a36ce2ab18 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 24 Jan 2024 14:43:11 +0100 Subject: [PATCH] Pull correct vagrant boxes for AlmaLinux For AlmaLinux we want to pull: * https://app.vagrantup.com/almalinux/boxes/9 * https://app.vagrantup.com/almalinux/boxes/8 --- lib/beaker-hostgenerator/hypervisor/vagrant.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/beaker-hostgenerator/hypervisor/vagrant.rb b/lib/beaker-hostgenerator/hypervisor/vagrant.rb index c8b5f999..0bf75317 100644 --- a/lib/beaker-hostgenerator/hypervisor/vagrant.rb +++ b/lib/beaker-hostgenerator/hypervisor/vagrant.rb @@ -10,6 +10,8 @@ class Vagrant < BeakerHostGenerator::Hypervisor::Interface def generate_node(node_info, base_config, bhg_version) base_config['box'] = if node_info['ostype'] =~ /^centos/ node_info['ostype'].sub(/(\d)/, '/\1') + elsif node_info['ostype'] =~ /^almalinux/ + node_info['ostype'].sub(/(\d)/, '/\1') elsif node_info['ostype'] =~ /^fedora/ node_info['ostype'].sub(/(\d)/, '/\1') + '-cloud-base' else