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:
kirby@puppetlabs.com 2018-06-08 12:40:03 -07:00
parent 00970ffc9e
commit af8b73b6c9
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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