Sha256: 371c4ca1cdee915c3f72f76e531a18c18b5e0e85506e1a8929d5e130f5b6be21

Contents?: true

Size: 1.09 KB

Versions: 112

Compression:

Stored size: 1.09 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,
            :ssl_client_key => ::Cert::Certs.ssl_client_key
          }
        }

        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

112 entries across 112 versions & 1 rubygems

Version Path
katello-3.17.0.rc2.1 app/services/katello/pulp/server.rb
katello-3.16.1.2 app/services/katello/pulp/server.rb
katello-3.16.1.1 app/services/katello/pulp/server.rb
katello-3.17.0.rc2 app/services/katello/pulp/server.rb
katello-3.16.1 app/services/katello/pulp/server.rb
katello-3.17.0.rc1 app/services/katello/pulp/server.rb
katello-3.16.0 app/services/katello/pulp/server.rb
katello-3.16.0.rc5.1 app/services/katello/pulp/server.rb
katello-3.16.0.rc5 app/services/katello/pulp/server.rb
katello-3.16.0.rc4.1 app/services/katello/pulp/server.rb
katello-3.15.3.1 app/services/katello/pulp/server.rb
katello-3.15.3 app/services/katello/pulp/server.rb
katello-3.16.0.rc4 app/services/katello/pulp/server.rb
katello-3.16.0.rc3.1 app/services/katello/pulp/server.rb
katello-3.15.2 app/services/katello/pulp/server.rb
katello-3.16.0.rc3 app/services/katello/pulp/server.rb
katello-3.16.0.rc2.1 app/services/katello/pulp/server.rb
katello-3.16.0.rc2 app/services/katello/pulp/server.rb
katello-3.15.1.1 app/services/katello/pulp/server.rb
katello-3.16.0.rc1.1 app/services/katello/pulp/server.rb