Sha256: 5f7bf9da0bfb74c18ca8a4d00aec5252b0081b0016c7061c53d8f62ff2c9772b
Contents?: true
Size: 848 Bytes
Versions: 5
Compression:
Stored size: 848 Bytes
Contents
require 'beaker-hostgenerator/data' require 'beaker-hostgenerator/hypervisor' require 'deep_merge' module BeakerHostGenerator module Hypervisor class Vagrant < BeakerHostGenerator::Hypervisor::Interface include BeakerHostGenerator::Data def generate_node(node_info, base_config, bhg_version) if node_info['ostype'] =~ /^centos/ 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' else base_config['box'] = "generic/#{node_info['ostype']}" end # We don't use this by default base_config['synced_folder'] = 'disabled' return base_generate_node(node_info, base_config, bhg_version, :vagrant) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems