Sha256: 87cd6860a5baca592c8ee0cb52c057b513c652b5db729c06f6947cf2fb30070b

Contents?: true

Size: 942 Bytes

Versions: 33

Compression:

Stored size: 942 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

      # default global configuration keys
      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

33 entries across 33 versions & 1 rubygems

Version Path
beaker-hostgenerator-1.1.24 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.23 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.22 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.21 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.20 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.19 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.18 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.17 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.16 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.15 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.14 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.13 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.12 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.11 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.10 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.9 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.8 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.7 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.6 lib/beaker-hostgenerator/hypervisor/vmpooler.rb
beaker-hostgenerator-1.1.5 lib/beaker-hostgenerator/hypervisor/vmpooler.rb