Commit graph

4 commits

Author SHA1 Message Date
kirby@puppetlabs.com
17956294ca Ensure pool sizes and templates are synced
This commit adds a step to sync pool sizes and templates when interacting with the configuration API. Without this change a pool size change is not reflected by the API loaded configuration until the change is made again via the API, and this registers as a new change.
2018-05-24 14:15:11 -07:00
kirby@puppetlabs.com
3b97afe076 Fix tests for invalid templates 2018-05-24 11:36:36 -07:00
kirby@puppetlabs.com
ab0c5b53a0 Add get endpoint for config 2018-05-24 11:36:00 -07:00
kirby@puppetlabs.com
9758adccfe (POOLER-107) Add configuration API endpoint
This commit adds a configuration endpoint to the vmpooler API. Pool
size, and pool template, can be adjusted for pools that are configured
at vmpooler application start time. Pool template changes trigger a pool
refresh, and the new template has delta disks created automatically by
vmpooler.

Additionally, the capability to create template delta disks is added to
the vsphere provider, and this is implemented to ensure that templates
have delta disks created at application start time.

The mechanism used to find template VM objects is simplified to make the flow of logic easier to understand. As an additional benefit, performance of this lookup is improved by using FindByInventoryPath.
2018-05-22 17:01:13 -07:00