Skip to content

Commit

Permalink
add openstack excon settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tzumainn committed Mar 7, 2017
1 parent 6d90d8d commit 15510eb
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
:service:
Expand Down

0 comments on commit 15510eb

Please sign in to comment.