From 20e3d5a04fc8f67f657dfa5085defb7d7d3c0b0e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 2 Jan 2023 16:56:30 +0100 Subject: [PATCH] MT#56292 Expect ngcp-voisniff to run on li instead of lb roles This matches the ngcp-service definition. Change-Id: I48b0d29c687a9705de22fbde58a43abed2532238 --- templates/411_process-ngcp-pro.yaml.tt2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/411_process-ngcp-pro.yaml.tt2 b/templates/411_process-ngcp-pro.yaml.tt2 index 9835de5..94d4e52 100644 --- a/templates/411_process-ngcp-pro.yaml.tt2 +++ b/templates/411_process-ngcp-pro.yaml.tt2 @@ -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.