Skip to content

Commit

Permalink
(BKR-1698) Use generic vagrant boxes for centos
Browse files Browse the repository at this point in the history
The centos organization on vagrant cloud (htttps://app.vagrantup.com/centos)
no longer provides a centos/6 box. This commit switches to the generic base
boxes for centos which are still available and kept up to date.
  • Loading branch information
wbclark committed Feb 12, 2021
1 parent 742c801 commit d800047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/beaker-hostgenerator/hypervisor/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Vagrant < BeakerHostGenerator::Hypervisor::Interface
include BeakerHostGenerator::Data

def generate_node(node_info, base_config, bhg_version)
if node_info['ostype'] =~ /^centos/
if node_info['ostype'] =~ /^centos/ and not node_info['ostype'] =~ /6/
base_config['box'] = node_info['ostype'].sub(/(\d)/, '/\1')
elsif node_info['ostype'] =~ /^fedora/
base_config['box'] = node_info['ostype'].sub(/(\d)/, '/\1') + '-cloud-base'
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/per-host-settings/vagrant-hypervisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ expected_hash:
pe_ver:
pe_upgrade_dir:
pe_upgrade_ver:
box: centos/6
box: generic/centos6
synced_folder: disabled
platform: el-6-x86_64
packaging_platform: el-6-x86_64
Expand Down

0 comments on commit d800047

Please sign in to comment.