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
|
||||
|
||||
vim = RbVmomi::VIM.connect(
|
||||
:host => config[ :vsphere ][ "server" ],
|
||||
:user => config[ :vsphere ][ "username" ],
|
||||
:password => config[ :vsphere ][ "password" ],
|
||||
:host => config[ :providers ][ :vsphere ][ "server" ],
|
||||
:user => config[ :providers ][ :vsphere ][ "username" ],
|
||||
:password => config[ :providers ][ :vsphere ][ "password" ],
|
||||
:ssl => true,
|
||||
:insecure => true,
|
||||
) or abort "Unable to connect to #{config[ :vsphere ][ "server" ]}!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue