Sha256: 6413fe7e62d4897eab226a0c2ab9cc2edac8a6ac43ca4c3fd7b17c99b4d6e185
Contents?: true
Size: 1.08 KB
Versions: 20
Compression:
Stored size: 1.08 KB
Contents
module Katello module Pulp class Server def self.config(url, user_remote_id) uri = URI.parse(url) runcible_params = { :url => "#{uri.scheme}://#{uri.host.downcase}", :api_path => uri.path, :user => user_remote_id, :timeout => SETTINGS[:katello][:rest_client_timeout], :open_timeout => SETTINGS[:katello][:rest_client_timeout], :logging => { :logger => ::Foreman::Logging.logger('katello/pulp_rest'), :exception => true, :info => true, :debug => true } } if Setting[:use_pulp_oauth] runcible_params[:oauth] = { :oauth_secret => SETTINGS[:katello][:pulp][:oauth_secret], :oauth_key => SETTINGS[:katello][:pulp][:oauth_key] } else runcible_params[:cert_auth] = { :ssl_client_cert => ::Cert::Certs.ssl_client_cert, :ssl_client_key => ::Cert::Certs.ssl_client_key } end Runcible::Instance.new(runcible_params) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems