From 33f25b7240eae8cf054591bf7144289f5f609315 Mon Sep 17 00:00:00 2001 From: Justin Sherrill Date: Mon, 5 Oct 2015 21:23:49 -0400 Subject: [PATCH] Fixes #12062 - exposing pulp num_workers as parameter --- manifests/init.pp | 5 ++++- manifests/params.pp | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 7202f1b7..6b47dfc9 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -33,6 +33,8 @@ # # $cdn_ssl_version:: SSL version used to communicate with the CDN. Optional. Use SSLv23 or TLSv1 # +# $num_pulp_workers:: Number of pulp workers to use +# # $package_names:: Packages that this module ensures are present instead of the default # class katello ( @@ -45,7 +47,7 @@ $oauth_secret = $katello::params::oauth_secret, $post_sync_token = $katello::params::post_sync_token, - + $num_pulp_workers = $katello::params::num_pulp_workers, $log_dir = $katello::params::log_dir, $config_dir = $katello::params::config_dir, @@ -106,6 +108,7 @@ enable_rpm => true, enable_puppet => true, enable_docker => true, + num_workers => $num_pulp_workers, } ~> class { '::qpid::client': ssl => true, diff --git a/manifests/params.pp b/manifests/params.pp index 24bb5efe..86ea5cd8 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -35,6 +35,8 @@ $proxy_username = undef $proxy_password = undef + $num_pulp_workers = min($::processorcount, 8) + # cdn ssl settings $cdn_ssl_version = undef