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
mr11.2.1
Guillem Jover 2 years ago
parent 0905c18ad7
commit 6e46a9c67b

@ -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