You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
473 B
26 lines
473 B
[%
|
|
hostname = ngcp.get_hostname();
|
|
|
|
is_mgmt = ngcp.has_role(hostname, 'mgmt');
|
|
is_li_dist = ngcp.has_role(hostname, 'li_dist');
|
|
-%]
|
|
|
|
[% IF grafana.enable == 'yes' && (is_mgmt || is_li_dist) -%]
|
|
file:
|
|
|
|
/var/lib/grafana/grafana.db:
|
|
exists: true
|
|
filetype: file
|
|
size:
|
|
not: 0
|
|
|
|
command:
|
|
|
|
sqlite3 /var/lib/grafana/grafana.db "select name from data_source":
|
|
exit-status: 0
|
|
stdout:
|
|
- "/^ngcp$/"
|
|
- "/^telegraf$/"
|
|
stderr: []
|
|
[% END -%]
|