Sha256: 96ccba3d9028c0d1ec7b0850a5a1c535beb6e5fe97e187aad8b4be15a674ae15

Contents?: true

Size: 900 Bytes

Versions: 11

Compression:

Stored size: 900 Bytes

Contents

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

module BeakerHostGenerator
  module Hypervisor
    class Vmpooler < BeakerHostGenerator::Hypervisor::Interface
      include BeakerHostGenerator::Data

      def global_config()
        {
          'pooling_api' => 'http://vmpooler.delivery.puppetlabs.net/'
        }
      end

      def generate_node(node_info, base_config, bhg_version)
        # set hypervisor
        base_config['hypervisor'] = 'vmpooler'

        platform = node_info['platform']
        platform_info = get_platform_info(bhg_version, platform, :vmpooler)
        base_config.deep_merge! platform_info

        # Some vmpooler/vsphere platforms have special requirements.
        # We munge the node host config here if that is necessary.
        fixup_node base_config

        return base_config
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
beaker-hostgenerator-0.8.4 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.8.3 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.8.2 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.8.1 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.8.0 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.7.4 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.7.3 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.7.2 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.7.1 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.7.0 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-0.6.0 lib/beaker-hostgenerator/hypervisor/vmpooler.rb