Merge pull request #40 from sschneid/global_timeout

Allow for a globally-configurable 'pending' timeout
This commit is contained in:
Roger Ignazio 2015-01-08 14:49:51 -08:00
commit 63b11a1622
2 changed files with 13 additions and 1 deletions

View file

@ -336,7 +336,13 @@ module Vmpooler
# PENDING
$redis.smembers('vmpooler__pending__'+pool['name']).each do |vm|
pool['timeout'] ||= 15
unless (pool['timeout'])
if ($config[:config]['timeout'])
pool['timeout'] = $config[:config]['timeout']
else
pool['timeout'] = 15
end
end
if (inventory[vm])
begin

View file

@ -91,6 +91,10 @@
# The number of concurrent VMware vSphere tasks to perform.
# (optional; default: '10')
#
# - timeout
# How long (in minutes) before marking a clone as 'failed' and retrying.
# (optional; default: '15')
#
# - vm_checktime
# How often (in minutes) to check the sanity of VMs in 'ready' queues.
# (optional; default: '15')
@ -108,6 +112,7 @@
site_name: 'vmpooler'
logfile: '/var/log/vmpooler.log'
task_limit: 10
timeout: 15
vm_checktime: 15
vm_lifetime: 12
domain: 'company.com'
@ -141,6 +146,7 @@
#
# - timeout
# How long (in minutes) before marking a clone as 'failed' and retrying.
# This setting overrides any globally-configured timeout setting.
# (optional; default: '15')
#
# - ready_ttl