From 1c015889f71dd6de5d266c505f2cd91144668a63 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 19 Dec 2022 23:42:39 +0100 Subject: [PATCH] MT#56187 Fix rate-o-mat process check too Apply the same logic on the process check as was done for the service check. Change-Id: I36a515431fb23467d11e0c519cc30a12b1279c13 (cherry picked from commit 14a3162f56298fcec076e855d3ab9976c8899b96) (cherry picked from commit e1a74ddeab21e4b991d9a460f650f590cad9bb8f) --- templates/410_process-ngcp.yaml.tt2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/410_process-ngcp.yaml.tt2 b/templates/410_process-ngcp.yaml.tt2 index 8c2941f..cf5b7da 100644 --- a/templates/410_process-ngcp.yaml.tt2 +++ b/templates/410_process-ngcp.yaml.tt2 @@ -106,7 +106,11 @@ process: running: true ngcp-rate-o-mat: - running: [% is_proxy ? 'true' : 'false' %] +[% IF rateomat.ha_mode == 'active-active' -%] + running: [% is_proxy && rateomat.enable == "yes" ? 'true' : 'false' %] +[% ELSE -%] + running: {{if and [% is_proxy && rateomat.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} +[% END -%] nginx: running: [% (is_mgmt || is_lb || is_li_dist) && nginx.enable == 'yes' ? 'true' : 'false' %]