Skip to content

Commit

Permalink
Fixes #30023: Add Katello config for Pulp 3 RPM
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Jun 8, 2020
1 parent c2e8c0e commit 6e4719a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/application.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
# @param use_pulp_2_for_docker
# Configure Katello to use Pulp 2 for docker content
#
# @param use_pulp_2_for_yum
# Configure Katello to use Pulp 2 for yum
#
# @param repo_export_dir
# Create a repository export directory for Katello to use
#
class katello::application (
Integer[0] $rest_client_timeout = 3600,
Boolean $use_pulp_2_for_file = false,
Boolean $use_pulp_2_for_docker = false,
Boolean $use_pulp_2_for_yum = false,
Stdlib::Absolutepath $repo_export_dir = '/var/lib/pulp/katello-export',
) {
include foreman
Expand Down
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
#
# $use_pulp_2_for_docker:: Configures Katello to use Pulp 2 for docker content
#
# $use_pulp_2_for_yum:: Configures Katello to use Pulp 2 for yum content
#
class katello (
Optional[String] $candlepin_oauth_key = undef,
Optional[String] $candlepin_oauth_secret = undef,
Expand All @@ -116,6 +118,7 @@

Boolean $use_pulp_2_for_file = false,
Boolean $use_pulp_2_for_docker = false,
Boolean $use_pulp_2_for_yum = false,

Stdlib::Absolutepath $repo_export_dir = '/var/lib/pulp/katello-export',

Expand Down Expand Up @@ -177,6 +180,7 @@
rest_client_timeout => $rest_client_timeout,
use_pulp_2_for_file => $use_pulp_2_for_file,
use_pulp_2_for_docker => $use_pulp_2_for_docker,
use_pulp_2_for_yum => $use_pulp_2_for_yum,
repo_export_dir => $repo_export_dir,
}

Expand Down
3 changes: 3 additions & 0 deletions spec/classes/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class { 'katello::params':
' :use_pulp_2_for_content_type:',
' :docker: false',
' :file: false',
' :yum: false',
' :container_image_registry:',
' :crane_url: https://foo.example.com:5000',
' :crane_ca_cert_file: /etc/pki/katello/certs/katello-server-ca.crt'
Expand Down Expand Up @@ -151,6 +152,7 @@ class { 'katello::params':
' :use_pulp_2_for_content_type:',
' :docker: false',
' :file: false',
' :yum: false',
' :container_image_registry:',
' :crane_url: https://foo.example.com:5000',
' :crane_ca_cert_file: /etc/pki/katello/certs/katello-server-ca.crt',
Expand Down Expand Up @@ -196,6 +198,7 @@ class {'katello::globals':
' :use_pulp_2_for_content_type:',
' :docker: false',
' :file: false',
' :yum: false',
' :container_image_registry:',
' :crane_url: https://foo.example.com:5000',
' :crane_ca_cert_file: /etc/pki/katello/certs/katello-server-ca.crt'
Expand Down
1 change: 1 addition & 0 deletions templates/katello.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
:use_pulp_2_for_content_type:
:docker: <%= @use_pulp_2_for_docker %>
:file: <%= @use_pulp_2_for_file %>
:yum: <%= @use_pulp_2_for_yum %>

# Internal configuration for communication from server to pulp crane service.
:container_image_registry:
Expand Down

0 comments on commit 6e4719a

Please # to comment.