[Salt-cloud] Allow to ignore ssl with Xen provider

Allow to ignore ssl verification for xen providers

# /etc/salt/cloud.providers.d/xentest.conf
xentest:
  ignore_ssl: True
  driver: xen

Require a recent XenAPI.py which can be found here: https://github.com/xapi-project/xen-api/blob/master/scripts/examples/python/XenAPI.py
This commit is contained in:
Berthet 2017-07-06 12:41:00 +02:00 committed by GitHub
parent 7d70bd6c80
commit cf4b0bf786

View File

@ -150,7 +150,14 @@ def _get_session():
__opts__,
search_global=False
)
session = XenAPI.Session(url)
ignore_ssl = config.get_cloud_config_value(
'ignore_ssl',
get_configured_provider(),
__opts__,
default=False,
search_global=False
)
session = XenAPI.Session(url,ignore_ssl=ignore_ssl)
log.debug('url: {} user: {} password: {}, originator: {}'.format(
url,
user,