Project

General

Profile

« Previous | Next » 

Revision f69f741a

Added by Daniel Lobato Garcia almost 9 years ago

Fixes #11023 - Pass identity_endpoint to Openstack Fog 1.32.0

View differences:

app/models/compute_resources/foreman/model/openstack.rb
private
def fog_credentials
{ :provider => :openstack,
:openstack_api_key => password,
:openstack_username => user,
:openstack_auth_url => url,
:openstack_tenant => tenant,
:openstack_identity_endpoint => url }
end
def client
@client ||= ::Fog::Compute.new(:provider => :openstack,
:openstack_api_key => password,
:openstack_username => user,
:openstack_auth_url => url,
:openstack_tenant => tenant)
@client ||= ::Fog::Compute.new(fog_credentials)
end
def network_client
@network_client ||= ::Fog::Network.new(:provider => :openstack,
:openstack_api_key => password,
:openstack_username => user,
:openstack_auth_url => url,
:openstack_tenant => tenant)
@network_client ||= ::Fog::Network.new(fog_credentials)
rescue
@network_client = nil
end
def volume_client
@volume_client ||= ::Fog::Volume.new(:provider => :openstack,
:openstack_api_key => password,
:openstack_username => user,
:openstack_auth_url => url,
:openstack_tenant => tenant)
@volume_client ||= ::Fog::Volume.new(fog_credentials)
end
def setup_key_pair

Also available in: Unified diff