Class: BeakerHostGenerator::Hypervisor::Vagrant

Inherits:
Interface
  • Object
show all
Includes:
Data
Defined in:
lib/beaker-hostgenerator/hypervisor/vagrant.rb

Constant Summary

Constants included from Data

Data::BASE_CONFIG, Data::MAIN_PE_VERSION, Data::PE_TARBALL_SERVER, Data::PE_USE_WIN32

Instance Method Summary collapse

Methods included from Data

base_host_config, generate_osinfo, get_osinfo, get_platform_info, get_platforms, osinfo, osinfo_bhgv1, pe_dir, pe_upgrade_version, pe_version

Methods inherited from Interface

#global_config, #initialize

Constructor Details

This class inherits a constructor from BeakerHostGenerator::Hypervisor::Interface

Instance Method Details

#generate_node(node_info, base_config, bhg_version) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/beaker-hostgenerator/hypervisor/vagrant.rb', line 10

def generate_node(node_info, base_config, bhg_version)
  base_config['box'] = case node_info['ostype']
                       when /^centos/, /^almalinux/
                         node_info['ostype'].sub(/(\d)/, '/\1')
                       when /^fedora/
                         node_info['ostype'].sub(/(\d)/, '/\1') + '-cloud-base'
                       else
                         "generic/#{node_info['ostype']}"
                       end

  # We don't use this by default
  base_config['synced_folder'] = 'disabled'

  base_generate_node(node_info, base_config, bhg_version, :vagrant)
end