Skip to content

Commit

Permalink
Merge pull request #14172 from tzumainn/openstack-excon-options
Browse files Browse the repository at this point in the history
Add openstack excon settings
  • Loading branch information
blomquisg authored Mar 15, 2017
2 parents 8f29231 + 15510eb commit 0c6b077
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models/manageiq/providers/openstack/manager_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def openstack_handle(options = {})
:ssl_ca_path => ::Settings.ssl.ssl_ca_path,
:ssl_cert_store => OpenSSL::X509::Store.new
}
extra_options[:domain_id] = keystone_v3_domain_id
extra_options[:region] = provider_region if provider_region.present?
extra_options[:domain_id] = keystone_v3_domain_id
extra_options[:region] = provider_region if provider_region.present?
extra_options[:omit_default_port] = ::Settings.ems.ems_openstack.excon.omit_default_port
extra_options[:read_timeout] = ::Settings.ems.ems_openstack.excon.read_timeout

osh = OpenstackHandle::Handle.new(username, password, address, port, api_version, security_protocol, extra_options)
osh.connection_options = {:instrumentor => $fog_log}
Expand Down
4 changes: 4 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
:keep_drift_states: 6.months
:purge_window_size: 10000
:ems:
:ems_openstack:
:excon:
:omit_default_port: true
:read_timeout: 60
:ems_redhat:
:resolve_ip_addresses: true
:inventory:
Expand Down

0 comments on commit 0c6b077

Please sign in to comment.