MT#56187 Fix rate-o-mat service check

The rate-o-mat service can run in active-active or in active-standby
modes. If the service is enabled and on the proxy nodes, the former
mode means the service will be enabled and running on both peers, the
latter will mean it's in the traditional HA mode and thus only running
on the active node.

Change-Id: I020c8a00706135ed5d432bf8b1b8874cf1b2f532
(cherry picked from commit 6e46a9c67b)
(cherry picked from commit b33e2ac1f1)
mr11.1.1
Guillem Jover 4 years ago committed by Mykola Malkov
parent 3322b67af0
commit f0e4899778

@ -56,8 +56,13 @@ service:
running: [% is_mgmt && www_admin.enable == 'yes' ? 'true' : 'false' %]
ngcp-rate-o-mat.service:
[% IF rateomat.ha_mode == 'active-active' -%]
enabled: [% rateomat.enable == "yes" ? 'true' : 'false' %]
running: [% is_proxy && rateomat.enable == "yes" ? 'true' : 'false' %]
[% ELSE -%]
enabled: false
running: {{if and [% is_proxy && rateomat.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}}
[% END -%]
ngcp-rtpengine-recording-daemon.service:
enabled: [% general.process_handler == 'none' && rtpengine.recording.enable == "yes" ? 'true' : 'false' %]

Loading…
Cancel
Save