mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Change default vsphere connection behavior
This commit changes the vsphere connection behavior to set insecure false. Without this change insecure is always set to true when making a connection regardless of the setting provided with the provider configuration.
This commit is contained in:
parent
00970ffc9e
commit
af8b73b6c9
2 changed files with 2 additions and 2 deletions
|
|
@ -410,7 +410,7 @@ module Vmpooler
|
||||||
connection = RbVmomi::VIM.connect host: provider_config['server'],
|
connection = RbVmomi::VIM.connect host: provider_config['server'],
|
||||||
user: provider_config['username'],
|
user: provider_config['username'],
|
||||||
password: provider_config['password'],
|
password: provider_config['password'],
|
||||||
insecure: provider_config['insecure'] || true
|
insecure: provider_config['insecure'] || false
|
||||||
metrics.increment('connect.open')
|
metrics.increment('connect.open')
|
||||||
return connection
|
return connection
|
||||||
rescue => err
|
rescue => err
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
#
|
#
|
||||||
# - insecure
|
# - insecure
|
||||||
# Whether to ignore any HTTPS negotiation errors (e.g. untrusted self-signed certificates)
|
# Whether to ignore any HTTPS negotiation errors (e.g. untrusted self-signed certificates)
|
||||||
# (optional: default true)
|
# (optional: default false)
|
||||||
#
|
#
|
||||||
# - datacenter
|
# - datacenter
|
||||||
# The datacenter within vCenter to manage VMs. This can be overridden in the pool configuration
|
# The datacenter within vCenter to manage VMs. This can be overridden in the pool configuration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue