Skip to content

Commit

Permalink
Do not enable Puppet if there is no Pulp 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Oct 22, 2020
1 parent 077016b commit a2dd546
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/application.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
$enable_ostree = $katello::params::enable_ostree
$enable_yum = $katello::params::enable_yum
$enable_file = $katello::params::enable_file
$enable_puppet = $katello::params::enable_puppet
$enable_puppet = $katello::params::_enable_puppet
$enable_docker = $katello::params::enable_docker
$enable_deb = $katello::params::enable_deb
$pulp_url = $katello::params::pulp_url
Expand Down
6 changes: 6 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@
String[1] $postgresql_evr_package = $katello::globals::postgresql_evr_package,
Boolean $pulp2_support = $katello::globals::pulp2_support,
) inherits katello::globals {

if !$pulp2_support {
$_enable_puppet = false
} else {
$_enable_puppet = $enable_puppet
}
}
2 changes: 1 addition & 1 deletion manifests/pulp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
enable_rpm => $katello::params::enable_yum,
enable_iso => $katello::params::enable_file,
enable_deb => $katello::params::enable_deb,
enable_puppet => $katello::params::enable_puppet,
enable_puppet => $katello::params::_enable_puppet,
enable_docker => $katello::params::enable_docker,
enable_ostree => $katello::params::enable_ostree,
num_workers => $num_workers,
Expand Down
6 changes: 3 additions & 3 deletions spec/classes/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class { 'katello::params':
' :yum: true',
' :file: true',
' :deb: true',
' :puppet: true',
' :puppet: false',
' :docker: true',
' :ostree: false',
' :candlepin:',
Expand Down Expand Up @@ -194,7 +194,7 @@ class { 'katello::params':
' :yum: true',
' :file: true',
' :deb: true',
' :puppet: true',
' :puppet: false',
' :docker: true',
' :ostree: false',
' :candlepin:',
Expand Down Expand Up @@ -269,7 +269,7 @@ class {'katello::globals':
' :yum: true',
' :file: true',
' :deb: true',
' :puppet: true',
' :puppet: false',
' :docker: true',
' :ostree: true',
' :candlepin:',
Expand Down

0 comments on commit a2dd546

Please sign in to comment.