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-4.1.4 app/services/katello/pulp/server.rb
katello-4.0.3 app/services/katello/pulp/server.rb
katello-3.18.5 app/services/katello/pulp/server.rb
katello-4.1.3 app/services/katello/pulp/server.rb
katello-4.0.2.1 app/services/katello/pulp/server.rb
katello-4.1.2.1 app/services/katello/pulp/server.rb
katello-4.0.2 app/services/katello/pulp/server.rb
katello-4.1.2 app/services/katello/pulp/server.rb
katello-3.18.4 app/services/katello/pulp/server.rb
katello-4.1.1 app/services/katello/pulp/server.rb
katello-4.1.0 app/services/katello/pulp/server.rb
katello-4.0.1.2 app/services/katello/pulp/server.rb
katello-3.18.3.1 app/services/katello/pulp/server.rb
katello-4.1.0.rc2.2 app/services/katello/pulp/server.rb
katello-4.1.0.rc2.1 app/services/katello/pulp/server.rb
katello-4.0.1.1 app/services/katello/pulp/server.rb
katello-3.18.3 app/services/katello/pulp/server.rb
katello-4.1.0.rc2 app/services/katello/pulp/server.rb
katello-4.0.1 app/services/katello/pulp/server.rb
katello-4.1.0.rc1.1 app/services/katello/pulp/server.rb