Sha256: 8d5aa8d18155fbe09114218e4bc5b44ef78b09af7eaf20707278d3bb74d53ca8
Contents?: true
Size: 1.15 KB
Versions: 27
Compression:
Stored size: 1.15 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}:#{uri.port}", :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 }, :cert_auth => { :ssl_client_cert => ::Cert::Certs.ssl_client_cert(use_admin_as_cn_pulp_cert: true), :ssl_client_key => ::Cert::Certs.ssl_client_key(use_admin_as_cn_pulp_cert: true) } } if (ca_cert = SETTINGS[:katello][:pulp][:ca_cert_file]) runcible_params[:ca_cert_file] = ca_cert end runcible_params[:verify_ssl] = SETTINGS[:katello][:pulp][:verify_ssl] if SETTINGS[:katello][:pulp].key?(:verify_ssl) Runcible::Instance.new(runcible_params) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems