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, }