mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Merge pull request #30 from sschneid/config_domain
Allow a 'domain' configuration param, returned in JSON response to POST
This commit is contained in:
commit
04e17f1622
2 changed files with 12 additions and 0 deletions
|
|
@ -221,6 +221,10 @@ module Vmpooler
|
||||||
result['ok'] = false
|
result['ok'] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ( result['ok'] and $config[:config]['domain'] )
|
||||||
|
result['domain'] = $config[:config]['domain']
|
||||||
|
end
|
||||||
|
|
||||||
JSON.pretty_generate(result)
|
JSON.pretty_generate(result)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -285,6 +289,10 @@ module Vmpooler
|
||||||
result['ok'] = false
|
result['ok'] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ( result['ok'] and $config[:config]['domain'] )
|
||||||
|
result['domain'] = $config[:config]['domain']
|
||||||
|
end
|
||||||
|
|
||||||
JSON.pretty_generate(result)
|
JSON.pretty_generate(result)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,9 @@
|
||||||
# - vm_lifetime
|
# - vm_lifetime
|
||||||
# How long (in hours) to keep VMs in 'running' queues before destroying.
|
# How long (in hours) to keep VMs in 'running' queues before destroying.
|
||||||
# (optional; default: '24')
|
# (optional; default: '24')
|
||||||
|
#
|
||||||
|
# - domain
|
||||||
|
# If set, returns a top-level 'domain' JSON key in POST requests
|
||||||
|
|
||||||
# Example:
|
# Example:
|
||||||
|
|
||||||
|
|
@ -107,6 +110,7 @@
|
||||||
task_limit: 10
|
task_limit: 10
|
||||||
vm_checktime: 15
|
vm_checktime: 15
|
||||||
vm_lifetime: 12
|
vm_lifetime: 12
|
||||||
|
domain: 'company.com'
|
||||||
|
|
||||||
# :pools:
|
# :pools:
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue