mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
This commit updates get_vm in the vmpooler API to allow for setting weights for backends. Additionally, when an alias for a pool exists, and the backend configured is not weighted, then the selection of the pool based on alias will be randomly sampled. Without this change any pool with the title of the alias is exhausted before an alternate pool with the configured alias is used, which results in an uneven distribution of VMs. When all backends involved are configured with weighted values the VM selection will be based on probability using those weights. A bug is fixed when setting the default ttl for check_ready_vm. Pickup is added to handle weighted VM selection. A dockerfile is added that allows for building and installing vmpooler from the current HEAD in docker to make for easy testing.
31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
lib = File.expand_path('../lib', __FILE__)
|
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
require 'vmpooler/version'
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = 'vmpooler'
|
|
s.version = Vmpooler::VERSION
|
|
s.authors = ['Puppet']
|
|
s.email = ['support@puppet.com']
|
|
|
|
s.summary = 'vmpooler provides configurable pools of instantly-available (running) virtual machines'
|
|
s.homepage = 'https://github.com/puppetlabs/vmpooler'
|
|
s.license = 'Apache-2.0'
|
|
s.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
|
|
|
s.files = Dir[ "bin/*", "lib/**/*" ]
|
|
s.bindir = 'bin'
|
|
s.executables = 'vmpooler'
|
|
s.require_paths = ["lib"]
|
|
s.add_dependency 'pickup', '~> 0.0.11'
|
|
s.add_dependency 'puma', '~> 3.11'
|
|
s.add_dependency 'rack', '~> 2.0'
|
|
s.add_dependency 'rake', '~> 12.3'
|
|
s.add_dependency 'redis', '~> 4.0'
|
|
s.add_dependency 'rbvmomi', '~> 1.13'
|
|
s.add_dependency 'sinatra', '~> 2.0'
|
|
s.add_dependency 'net-ldap', '~> 0.16'
|
|
s.add_dependency 'statsd-ruby', '~> 1.4'
|
|
s.add_dependency 'connection_pool', '~> 2.2'
|
|
s.add_dependency 'nokogiri', '~> 1.8'
|
|
end
|