mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
This commit refactorss the check_pool method in pool_manager. Specifically, each commented section describing a stage of check_pool is broken out into a separate method and check_pool is simplified by calling these methods. Without this change it is difficult to follow the intent for or make changes to check_pool. Additionally, a docker-compose file is added to make it simple to launch an all-in-one vmpooler instance along with a separate redis server with docker.
48 lines
901 B
Text
48 lines
901 B
Text
---
|
|
:providers:
|
|
:dummy:
|
|
filename: '/tmp/dummy-backing.yaml'
|
|
|
|
:redis:
|
|
server: 'localhost'
|
|
|
|
:auth:
|
|
provider: 'dummy'
|
|
|
|
:tagfilter:
|
|
url: '(.*)\/'
|
|
|
|
:config:
|
|
site_name: 'vmpooler'
|
|
logfile: '/var/log/vmpooler.log'
|
|
task_limit: 10
|
|
timeout: 15
|
|
vm_checktime: 15
|
|
vm_lifetime: 12
|
|
vm_lifetime_auth: 24
|
|
allowed_tags:
|
|
- 'created_by'
|
|
- 'project'
|
|
domain: 'example.com'
|
|
prefix: 'poolvm-'
|
|
|
|
:pools:
|
|
- name: 'debian-7-i386'
|
|
alias: [ 'debian-7-32' ]
|
|
template: 'Templates/debian-7-i386'
|
|
folder: 'Pooled VMs/debian-7-i386'
|
|
datastore: 'vmstorage'
|
|
size: 5
|
|
timeout: 15
|
|
ready_ttl: 1440
|
|
provider: dummy
|
|
- name: 'debian-7-x86_64'
|
|
alias: [ 'debian-7-64', 'debian-7-amd64' ]
|
|
template: 'Templates/debian-7-x86_64'
|
|
folder: 'Pooled VMs/debian-7-x86_64'
|
|
datastore: 'vmstorage'
|
|
size: 5
|
|
timeout: 15
|
|
ready_ttl: 1440
|
|
provider: dummy
|
|
|