mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Adding support for multiple vsphere providers
Refactoring the vmpooler.yaml format to support multiple providers. The second level key under :providers: is a unique key name that represents a provider that can be refered in the pool's parameter called provider. The code is still backward compatible to support the :vsphere: and :dummy: keys but in reality if you have more than one vsphere configuration you would give them a different name. For example :vsphere-pdx: and :vsphere-bfs: and the actual provider class would be specified as a parameter called 'provider_class'. See tests and examples for more information.
This commit is contained in:
parent
1fcb19bd7b
commit
d93ab332f7
5 changed files with 101 additions and 6 deletions
|
|
@ -32,6 +32,11 @@
|
|||
# - insecure
|
||||
# Whether to ignore any HTTPS negotiation errors (e.g. untrusted self-signed certificates)
|
||||
# (optional: default true)
|
||||
#
|
||||
# - provider_class
|
||||
# For multiple providers, specify one of the supported backing services (vsphere or dummy)
|
||||
# (optional: will default to it's parent :key: name eg. 'vsphere')
|
||||
#
|
||||
# Example:
|
||||
|
||||
:vsphere:
|
||||
|
|
@ -39,6 +44,23 @@
|
|||
username: 'vmpooler'
|
||||
password: 'swimsw1msw!m'
|
||||
|
||||
# If you want to support more than one provider with different parameters (server, username or passwords) you have to specify the
|
||||
# backing service in the provider_class configuration parameter for example 'vsphere' or 'dummy'. Each pool can specify
|
||||
# the provider to use.
|
||||
#
|
||||
# Multiple providers example:
|
||||
|
||||
:vsphere-pdx:
|
||||
server: 'vsphere.pdx.company.com'
|
||||
username: 'vmpooler-pdx'
|
||||
password: 'swimsw1msw!m'
|
||||
provider_class: 'vsphere'
|
||||
:vsphere-bfs:
|
||||
server: 'vsphere.bfs.company.com'
|
||||
username: 'vmpooler-bfs'
|
||||
password: 'swimsw1msw!m'
|
||||
provider_class: 'vsphere'
|
||||
|
||||
# :dummy:
|
||||
#
|
||||
# The dummy backing service is a simple text file service that can be used
|
||||
|
|
@ -417,6 +439,8 @@
|
|||
# The name of the VM provider which manage this pool. This should match
|
||||
# a name in the :providers: section above e.g. vsphere
|
||||
# (required; will default to vsphere for backwards compatibility)
|
||||
# If you have more than one provider, this is where you would choose which
|
||||
# one to use for this pool
|
||||
#
|
||||
# - clone_target
|
||||
# Per-pool option to override the global 'clone_target' cluster.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue