lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-1.2.10 vs lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-1.3.0

- old
+ new

@@ -18,10 +18,19 @@ # Grab vmpooler data for this platform and any hardware (ABS) data. # The assumption here is that these are mutually exclusive; that is, # any given platform will have *either* :vmpooler data or :abs data # so we're not worried about one overriding the other when we merge # the hashes together. - return base_generate_node(node_info, base_config, bhg_version, :vmpooler, :abs) + base_config = base_generate_node(node_info, base_config, bhg_version, :vmpooler, :abs) + + case node_info['ostype'] + when /^centos/ + base_config['template'] = base_config['platform'].gsub(/^el/, 'centos') + when /^fedora/ + base_config['template'] = base_config['platform'] + end + + base_config end end end end