Skip to content

Commit

Permalink
Refs #28695: Add Pulp 2 migration settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Jan 16, 2020
1 parent 37104d7 commit 24e1753
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions manifests/globals.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
Boolean $enable_puppet = true,
Boolean $enable_docker = true,
Boolean $enable_deb = true,
Boolean use_pulp_2_for_file = false,
Boolean use_pulp_2_for_docker = false,
) {
if versioncmp($facts['operatingsystemmajrelease'], '8') >= 0 {
$rubygem_katello = 'rubygem-katello'
Expand Down
17 changes: 11 additions & 6 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
Boolean $enable_docker = true,
Boolean $enable_deb = true,

Boolean $use_pulp_2_for_file = $use_pulp_2_for_file,
Boolean $use_pulp_2_for_docker = $use_pulp_2_for_docker,

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

String $candlepin_db_host = 'localhost',
Expand Down Expand Up @@ -156,12 +159,14 @@
}

class { 'katello::globals':
enable_ostree => $enable_ostree,
enable_yum => $enable_yum,
enable_file => $enable_file,
enable_puppet => $enable_puppet,
enable_docker => $enable_docker,
enable_deb => $enable_deb,
enable_ostree => $enable_ostree,
enable_yum => $enable_yum,
enable_file => $enable_file,
enable_puppet => $enable_puppet,
enable_docker => $enable_docker,
enable_deb => $enable_deb,
use_pulp_2_for_file => $use_pulp_2_for_file,
use_pulp_2_for_docker => $use_pulp_2_for_docker,
}

class { 'katello::params':
Expand Down
4 changes: 4 additions & 0 deletions templates/katello.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
:url: <%= @pulp_url %>
:ca_cert_file: <%= @pulp_ca_cert %>

:use_pulp_2_for_content_type:
:docker: <%= @use_pulp_2_for_docker %>
:file: <%= @use_pulp_2_for_file %>

:qpid:
:url: <%= @qpid_url %>
:subscriptions_queue_address: <%= @candlepin_event_queue %>
Expand Down

0 comments on commit 24e1753

Please sign in to comment.