diff --git a/manifests/init.pp b/manifests/init.pp index 37e42128..20d49db6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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, diff --git a/manifests/params.pp b/manifests/params.pp index b6510935..fca56663 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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 {} diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index e2e390f5..25272d09 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -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