From 902596196bbec841bf21ce9ccfc840f3f5aa66e6 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 1 Feb 2021 11:43:53 -0800 Subject: [PATCH] Add support for Alma Linux Bento boxes We have one of these now Signed-off-by: Tim Smith --- lib/kitchen/driver/vagrant.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kitchen/driver/vagrant.rb b/lib/kitchen/driver/vagrant.rb index 40630687..6c47b244 100644 --- a/lib/kitchen/driver/vagrant.rb +++ b/lib/kitchen/driver/vagrant.rb @@ -245,7 +245,7 @@ class << self # box # @api private def bento_box?(name) - name =~ /^(centos|debian|fedora|freebsd|opensuse|ubuntu|oracle|hardenedbsd|amazonlinux)-/ + name =~ /^(centos|debian|fedora|freebsd|opensuse|ubuntu|oracle|hardenedbsd|amazonlinux|almalinux)-/ end # Returns whether or not the we expect the box to work with shared folders @@ -256,7 +256,7 @@ def bento_box?(name) def safe_share?(box) return false if /(hyperv|libvirt)/.match?(config[:provider]) - box =~ %r{^bento/(centos|debian|fedora|opensuse|ubuntu|oracle|amazonlinux)-} + box =~ %r{^bento/(centos|debian|fedora|opensuse|ubuntu|oracle|amazonlinux|almalinux)-} end # Return true if we found the criteria to enable the cache_directory