MT#56292 Expect ngcp-voisniff to run on li instead of lb roles

This matches the ngcp-service definition.

Change-Id: I48b0d29c687a9705de22fbde58a43abed2532238
mr11.2.1
Guillem Jover 3 years ago
parent d5c39d13cb
commit 20e3d5a04f

@ -4,6 +4,7 @@
is_mgmt = ngcp.has_role(hostname, 'mgmt');
is_proxy = ngcp.has_role(hostname, 'proxy');
is_lb = ngcp.has_role(hostname, 'lb');
is_li = ngcp.has_role(hostname, 'li');
-%]
process:
@ -64,7 +65,7 @@ process:
running: true
ngcp-voisniff:
running: {{if and [% (is_proxy || is_lb) && voisniff.daemon.start == 'yes' ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}}
running: {{if and [% (is_proxy || is_li) && voisniff.daemon.start == 'yes' ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}}
# We have to use a truncated process name because that's the COMM limit
# on Linux (15 characters). Real name: prometheus-haproxy-exporter.

Loading…
Cancel
Save