mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(maint) Update template delta script for moved vsphere credentials
The vmpooler.yaml file has been reorganized a bit and now nests the vsphere credentials within a "providers" class. This tweak is needed to keep the template delta script working.
This commit is contained in:
parent
d789dfdfc8
commit
3efce8d4e7
1 changed files with 3 additions and 3 deletions
|
|
@ -22,9 +22,9 @@ def create_template_deltas( folder )
|
||||||
abort 'No config file (./vmpooler.yaml or ~/.vmpooler) found!' unless config
|
abort 'No config file (./vmpooler.yaml or ~/.vmpooler) found!' unless config
|
||||||
|
|
||||||
vim = RbVmomi::VIM.connect(
|
vim = RbVmomi::VIM.connect(
|
||||||
:host => config[ :vsphere ][ "server" ],
|
:host => config[ :providers ][ :vsphere ][ "server" ],
|
||||||
:user => config[ :vsphere ][ "username" ],
|
:user => config[ :providers ][ :vsphere ][ "username" ],
|
||||||
:password => config[ :vsphere ][ "password" ],
|
:password => config[ :providers ][ :vsphere ][ "password" ],
|
||||||
:ssl => true,
|
:ssl => true,
|
||||||
:insecure => true,
|
:insecure => true,
|
||||||
) or abort "Unable to connect to #{config[ :vsphere ][ "server" ]}!"
|
) or abort "Unable to connect to #{config[ :vsphere ][ "server" ]}!"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue