mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(POOLER-123) Implement a max TTL (#349)
* (POOLER-123) Implement a max TTL Before this change, we could checkout a vm and set the lifetime to a very high number which would esssentially keep the vm running forever. Now implementing a config setting max_lifetime_upper_limit which enforces a maximum lifetime in hours both for initial checkout and extending a running vm * (POOLER-123) Improve PUT vm endpoint error messaging Prior to this commit the PUT vm endpoint didn't give any useful information about why a user's request failed. This commit updates PUT to output a more helpful set of error messages in the `failure` key that gets returned in the JSON response. * (POOLER-123) Update max_lifetime_upper_limit key This commit switches the max_lifetime_upper_limit key from being a symbol to being a string, which is what the config hash seems to contain. * (maint) Add option to disable Redis persistence in docker-compose This commit is just a handy little command override to the redis container to prevent persistence.
This commit is contained in:
parent
114cb9f398
commit
ae10bd4e22
5 changed files with 73 additions and 7 deletions
|
|
@ -498,6 +498,12 @@
|
|||
# Expects a boolean value
|
||||
# (optional; default: false)
|
||||
#
|
||||
# - max_lifetime_upper_limit
|
||||
# Sets a lifetime upper limit (in hours) for how long the vm lifetime can be set via the API. Lifetime can be set and extended
|
||||
# so this configuration is used to enforce an upper limit to both the initial lifetime request and/or the extended
|
||||
# lifetime (by checking how long it has already been running).
|
||||
# (optional; default: unlimited)
|
||||
#
|
||||
# Example:
|
||||
|
||||
:config:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue