From a28e1aff4f5e9f96c7676adcf73284622e2ab5cc Mon Sep 17 00:00:00 2001 From: highpingblorg Date: Tue, 22 Oct 2024 10:34:33 +0200 Subject: [PATCH] Ensure dynflow service template file is managed by puppet Fix GH-1191 --- manifests/config.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/manifests/config.pp b/manifests/config.pp index 5007126f7..2b8a695b2 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -7,6 +7,7 @@ } if $foreman::dynflow_manage_services { + $dynflow_service_filename = '/usr/lib/systemd/system/dynflow-sidekiq@.service' if $foreman::dynflow_redis_url != undef { $dynflow_redis_url = $foreman::dynflow_redis_url } else { @@ -15,6 +16,16 @@ Class['redis'] -> Service <| tag == 'foreman::dynflow::worker' |> } + file { $dynflow_service_filename: + ensure => file, + mode => '0644', + owner => root, + group => root, + content => epp("${module_name}/dynflow-sidekiq@.service.epp", { + redis_host => $foreman::dynflow_redis_url, + }), + } + file { '/etc/foreman/dynflow': ensure => directory, }