Class: BeakerHostGenerator::Hypervisor::Vmpooler
- Includes:
- Data
- Defined in:
- lib/beaker-hostgenerator/hypervisor/vmpooler.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
- #generate_node(node_info, base_config, bhg_version) ⇒ Object
-
#global_config ⇒ Object
default global configuration keys.
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
Constructor Details
This class inherits a constructor from BeakerHostGenerator::Hypervisor::Interface
Instance Method Details
#generate_node(node_info, base_config, bhg_version) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/beaker-hostgenerator/hypervisor/vmpooler.rb', line 17 def generate_node(node_info, base_config, bhg_version) base_config = base_generate_node(node_info, base_config, bhg_version, :vmpooler) case node_info['ostype'] when /^(almalinux|centos|oracle|redhat|rocky|scientific)/ base_config['template'] ||= base_config['platform']&.gsub(/^el/, ::Regexp.last_match(1)) when /^fedora/, /^opensuse/, /^panos/ base_config['template'] ||= base_config['platform'] when /^(debian|ubuntu)/ os = Regexp.last_match(1) arch = case node_info['bits'] when '64' 'x86_64' when '32' 'i386' end base_config['template'] ||= "#{node_info['ostype'].sub(os, "#{os}-")}-#{arch}" if arch end base_config end |
#global_config ⇒ Object
default global configuration keys
11 12 13 14 15 |
# File 'lib/beaker-hostgenerator/hypervisor/vmpooler.rb', line 11 def global_config { 'pooling_api' => 'https://vmpooler-prod.k8s.infracore.puppet.net/', } end |