Sha256: 3b9074d1020467729d692cdf3a539bfe16b8e850df5f39535d51b66f340b2162

Contents?: true

Size: 1.09 KB

Versions: 31

Compression:

Stored size: 1.09 KB

Contents

require 'beaker-hostgenerator/data'
require 'beaker-hostgenerator/hypervisor'
require 'deep_merge'

module BeakerHostGenerator
  module Hypervisor
    # AlwaysBeScheduling implementation to support CI.next.
    #
    # The ABS services requires the vmpooler template values as input to
    # determine the type of platform that's being requested.
    #
    # Therefore, this hypervisor just reuses the vmpooler hypervisor template
    # values, in addition to ABS-only values for hardware platforms.
    class ABS < BeakerHostGenerator::Hypervisor::Interface
      include BeakerHostGenerator::Data

      def generate_node(node_info, base_config, bhg_version)
        # 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)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
beaker-hostgenerator-1.2.10 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.9 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.8 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.7 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.6 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.5 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.4 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.3 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.2 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.1 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.2.0 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.44 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.43 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.42 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.41 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.40 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.39 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.38 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.37 lib/beaker-hostgenerator/hypervisor/abs.rb
beaker-hostgenerator-1.1.36 lib/beaker-hostgenerator/hypervisor/abs.rb