Skip to content

Commit

Permalink
Add support for Alma Linux Bento boxes
Browse files Browse the repository at this point in the history
We have one of these now

Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Feb 1, 2021
1 parent 836173c commit 9025961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kitchen/driver/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9025961

Please sign in to comment.