From d9dcc4e10ee4bed9b0064583166b4cfa3588d1e6 Mon Sep 17 00:00:00 2001 From: highpingblorg Date: Tue, 22 Oct 2024 14:24:28 +0200 Subject: [PATCH] Use systemd::dropin_file to set the Redis URL Fixes GH-1191 --- manifests/dynflow/worker.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifests/dynflow/worker.pp b/manifests/dynflow/worker.pp index 5b1c6a616..2eabe221d 100644 --- a/manifests/dynflow/worker.pp +++ b/manifests/dynflow/worker.pp @@ -39,6 +39,15 @@ 'queues' => $queues, } + systemd::dropin_file { "${service}-service": + filename => 'dependencies.conf', + unit => "${service}.service", + content => epp("${module_name}/dynflow-sidekiq-overrides.conf.epp", { + redis_host => $foreman::dynflow_redis_url, + }), + notify_service => true, + } + file { $filename: ensure => file, owner => $config_owner,