mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Add support for ondemand provisioning to vmfloaty
This commit adds support for provisioning instances on demand with vmpooler. Additionally, this change adds a capability to detect on demand pools available in ABS. Without this change vmfloaty does not support provisioning instances via the vmpooler ondemand endpoints.
This commit is contained in:
parent
482d4328d1
commit
05a133fc72
6 changed files with 78 additions and 9 deletions
|
|
@ -150,6 +150,14 @@ class ABS
|
|||
os_list << '*** VMPOOLER Pools ***'
|
||||
os_list += JSON.parse(res_body['vmpooler_platforms'])
|
||||
|
||||
res = conn.get 'status/platforms/ondemand_vmpooler'
|
||||
res_body = JSON.parse(res.body)
|
||||
unless res_body['ondemand_vmpooler_platforms'] == '[]'
|
||||
os_list << ''
|
||||
os_list << '*** VMPOOLER ONDEMAND Pools ***'
|
||||
os_list += JSON.parse(res_body['ondemand_vmpooler_platforms'])
|
||||
end
|
||||
|
||||
res = conn.get 'status/platforms/nspooler'
|
||||
res_body = JSON.parse(res.body)
|
||||
os_list << ''
|
||||
|
|
@ -168,7 +176,7 @@ class ABS
|
|||
end
|
||||
|
||||
# Retrieve an OS from ABS.
|
||||
def self.retrieve(verbose, os_types, token, url, user, options)
|
||||
def self.retrieve(verbose, os_types, token, url, user, options, _ondemand = nil)
|
||||
#
|
||||
# Contents of post must be like:
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue