Initial commit migrating from VMPooler proper

This copies in all needed files from the main VMPooler repo. Version
1.3.0 of VMPooler was used as the basis for this code.
This commit is contained in:
Gene Liverman 2021-11-29 15:14:42 -05:00
commit a08cba099f
No known key found for this signature in database
GPG key ID: 3AF83985B6C857C6
19 changed files with 11422 additions and 0 deletions

43
spec/fixtures/vmpooler.yaml vendored Normal file
View file

@ -0,0 +1,43 @@
---
:providers:
:dummy:
:redis:
server: 'localhost'
:auth:
provider: dummy
:tagfilter:
url: '(.*)\/'
:config:
site_name: 'vmpooler'
# Need to change this on Windows
logfile: '/var/log/vmpooler.log'
task_limit: 10
timeout: 15
vm_checktime: 1
vm_lifetime: 12
vm_lifetime_auth: 24
allowed_tags:
- 'created_by'
- 'project'
domain: 'example.com'
prefix: 'poolvm-'
# Uncomment the lines below to suppress metrics to STDOUT
# :statsd:
# server: 'localhost'
# prefix: 'vmpooler'
# port: 8125
:pools:
- name: 'pool01'
size: 5
provider: dummy
ready_ttl: 5
- name: 'pool02'
size: 5
provider: dummy
ready_ttl: 5

43
spec/fixtures/vmpooler2.yaml vendored Normal file
View file

@ -0,0 +1,43 @@
---
:providers:
:dummy:
:redis:
server: 'localhost'
:auth:
provider: dummy
:tagfilter:
url: '(.*)\/'
:config:
site_name: 'vmpooler'
# Need to change this on Windows
logfile: '/var/log/vmpooler.log'
task_limit: 10
timeout: 15
vm_checktime: 1
vm_lifetime: 12
vm_lifetime_auth: 24
allowed_tags:
- 'created_by'
- 'project'
domain: 'example.com'
prefix: 'poolvm-'
# Uncomment the lines below to suppress metrics to STDOUT
# :statsd:
# server: 'localhost'
# prefix: 'vmpooler'
# port: 8125
:pools:
- name: 'pool03'
size: 5
provider: dummy
ready_ttl: 5
- name: 'pool04'
size: 5
provider: dummy
ready_ttl: 5