From 0e8d7405fa028e0f48b492b2d98ffd5b76423097 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 8 Jul 2021 18:34:13 +0200 Subject: [PATCH] TT#129451 Switch ngcp-rate-o-mat to not be managed by HA The execution mode for this service has recently changed, adapt the check to match reality. Change-Id: I3d47d147cdd0314130cab690db21b5432f9bc07e --- templates/410_process-ngcp.yaml.tt2 | 2 +- templates/510_init-daemons-ngcp.yaml.tt2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/410_process-ngcp.yaml.tt2 b/templates/410_process-ngcp.yaml.tt2 index 5404690..eb61bde 100644 --- a/templates/410_process-ngcp.yaml.tt2 +++ b/templates/410_process-ngcp.yaml.tt2 @@ -106,7 +106,7 @@ process: running: true ngcp-rate-o-mat: - running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} + running: [% is_proxy ? 'true' : 'false' %] nginx: running: [% (is_mgmt || is_lb || is_li_dist) && nginx.enable == 'yes' ? 'true' : 'false' %] diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index 2cc203f..2ce9358 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -57,7 +57,7 @@ service: ngcp-rate-o-mat.service: enabled: [% general.process_handler == 'none' && rateomat.enable == "yes" ? 'true' : 'false' %] - running: {{if and [% is_proxy && rateomat.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} + running: [% is_proxy && rateomat.enable == "yes" ? 'true' : 'false' %] ngcp-rtpengine-recording-daemon.service: enabled: [% general.process_handler == 'none' && rtpproxy.recording.enable == "yes" ? 'true' : 'false' %]