Skip to content

Commit

Permalink
allow overriding the name of the metapackage
Browse files Browse the repository at this point in the history
this is useful for downstream branding
  • Loading branch information
evgeni authored and ekohl committed Oct 30, 2023
1 parent 55ebdbb commit 12fabfc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@

Integer[0] $hosts_queue_workers = 1,
) {
package { 'katello':
ensure => installed,
}

class { 'katello::params':
candlepin_oauth_key => $candlepin_oauth_key,
candlepin_oauth_secret => $candlepin_oauth_secret,
}

if $katello::params::meta_package != '' {
package { $katello::params::meta_package:
ensure => installed,
}
}

class { 'katello::application':
rest_client_timeout => $rest_client_timeout,
hosts_queue_workers => $hosts_queue_workers,
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
Stdlib::HTTPSUrl $candlepin_url = "https://${candlepin_host}:${candlepin_port}/candlepin",
String[1] $candlepin_client_keypair_group = 'foreman',
String[1] $postgresql_evr_package = $katello::globals::postgresql_evr_package,
String[0] $meta_package = 'katello',
) inherits katello::globals {}
1 change: 1 addition & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
it { is_expected.to contain_class('katello::application') }
it { is_expected.to contain_class('katello::qpid') }
it { is_expected.to contain_package('rubygem-katello').that_requires('Class[candlepin]') }
it { is_expected.to contain_package('katello') }
end
end
end

0 comments on commit 12fabfc

Please sign in to comment.