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