lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-1.5.0 vs lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-1.6.0

- old
+ new

@@ -25,9 +25,25 @@ case node_info['ostype'] when /^centos/ base_config['template'] = base_config['platform'].gsub(/^el/, 'centos') when /^fedora/ base_config['template'] = base_config['platform'] + when /^ubuntu/ + base_template = node_info['ostype'].sub('ubuntu', 'ubuntu-') + arch = case node_info['bits'] + when '64' + 'x86_64' + when '32' + 'i386' + when 'AARCH64' + 'arm64' + when 'POWER' + base_template = node_info['ostype'].sub(/ubuntu(\d\d)/, 'ubuntu-\1.') + 'power8' + else + raise "Unknown bits '#{node_info['bits']}' for '#{node_info['ostype']}'" + end + base_config['template'] = "#{base_template}-#{arch}" end base_config end end