diff --git a/manifests/params.pp b/manifests/params.pp index be29ee855..d6a23d709 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -83,6 +83,10 @@ $foreman_service_ensure = 'running' $foreman_service_enable = true $foreman_service_port = 3000 + $foreman_puma_threads_min = 0 + $foreman_puma_threads_max = 16 + $foreman_puma_workers = 4 + # Define job processing service properties $jobs_manage_service = true diff --git a/templates/foreman.service-overrides.erb b/templates/foreman.service-overrides.erb index 2cf84638e..ac51d1a91 100644 --- a/templates/foreman.service-overrides.erb +++ b/templates/foreman.service-overrides.erb @@ -6,6 +6,6 @@ Environment=FOREMAN_HOME=<%= scope['foreman::app_root'] %> Environment=FOREMAN_BIND=<%= scope['foreman::foreman_service_bind'] %> <% end -%> Environment=FOREMAN_PORT=<%= scope['foreman::foreman_service_port'] %> -Environment=FOREMAN_PUMA_THREADS_MIN=0 -Environment=FOREMAN_PUMA_THREADS_MAX=16 -Environment=FOREMAN_PUMA_WORKERS=4 +Environment=FOREMAN_PUMA_THREADS_MIN=<%= scope['foreman::foreman_puma_threads_min'] %> +Environment=FOREMAN_PUMA_THREADS_MAX=<%= scope['foreman::foreman_puma_threads_max'] %> +Environment=FOREMAN_PUMA_WORKERS=<%= scope['foreman::foreman_puma_workers'] %>