From 4ee5fea8dc894d87198c27d049ac0caa6e323ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 20 Jun 2023 22:54:32 +0200 Subject: fixes --- manifests/worker.pp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'manifests') diff --git a/manifests/worker.pp b/manifests/worker.pp index 99c8175..2346b95 100644 --- a/manifests/worker.pp +++ b/manifests/worker.pp @@ -59,6 +59,8 @@ # Port to bind the health endpoint to. # @param healthcheck_timeout # Timeout for health check. +# @param conf_name +# Local name of the main configuration file. # @param extra_env # A hash of extra environment variables which will be passed directly # to the worker process. @@ -85,6 +87,8 @@ class concourse::worker ( Stdlib::Port $healthcheck_bind_port = 8888, String $healthcheck_timeout = '5s', + String $conf_name = 'worker-base', + Hash[String, Any] $extra_env = {}, ) { ensure_packages([ @@ -138,10 +142,8 @@ class concourse::worker ( 'HEALTHCHECK_TIMEOUT' => $healthcheck_timeout, } + $extra_env - file { '/etc/conf.d/concourse-worker': - ensure => $ensure, - mode => '0600', - show_diff => false, - content => epp("${module_name}/env.epp", { 'entries' => $env }), + concourse::conf::worker { $conf_name: + ensure => $ensure, + env => $env, } } -- cgit v1.2.3