aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-20 22:54:32 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-20 22:54:32 +0200
commit4ee5fea8dc894d87198c27d049ac0caa6e323ecb (patch)
tree33e11760a4eff3c8e70947b2c7af33e6b94b1598
parentfixes (diff)
downloadconcourse-4ee5fea8dc894d87198c27d049ac0caa6e323ecb.tar.gz
concourse-4ee5fea8dc894d87198c27d049ac0caa6e323ecb.tar.xz
fixes
-rw-r--r--manifests/worker.pp12
1 files changed, 7 insertions, 5 deletions
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,
}
}