2017-06-11 20:26:34 +02:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
[respondd]
|
2020-11-23 22:22:23 +01:00
|
|
|
enable = {{ yanic_respondd_enable | ternary('true','false') }}
|
2017-06-11 20:26:34 +02:00
|
|
|
collect_interval = "{{ yanic_respondd_collect_interval }}"
|
2018-07-09 22:38:49 +02:00
|
|
|
synchronize = "{{ yanic_respondd_synchronize_interval }}"
|
|
|
|
|
|
|
|
[respondd.sites.ffrgb]
|
|
|
|
domains = ["{{ site_code }}"]
|
|
|
|
|
|
|
|
[[respondd.interfaces]]
|
2018-07-10 18:14:13 +02:00
|
|
|
ifname = "{{ yanic_respondd_interface }}"
|
2020-11-23 22:22:23 +01:00
|
|
|
{% if yanic_respondd_ip == true %}
|
|
|
|
ip_address = "{{ ansible_default_ipv6.address }}"
|
|
|
|
send_no_request = true
|
|
|
|
port = 10001
|
|
|
|
{% endif %}
|
2017-06-11 20:26:34 +02:00
|
|
|
|
|
|
|
[webserver]
|
|
|
|
enable = {{ yanic_webserver | ternary('true','false') }}
|
|
|
|
bind = "{{ yanic_webserver_bind }}"
|
|
|
|
webroot = "{{ yanic_webserver_webroot }}"
|
|
|
|
|
|
|
|
[nodes]
|
2018-01-15 12:32:51 +01:00
|
|
|
state_path = "{{ yanic_nodes_state_path }}"
|
|
|
|
prune_after = "{{ yanic_nodes_prune_after }}"
|
|
|
|
save_interval = "{{ yanic_nodes_save_interval }}"
|
|
|
|
offline_after = "{{ yanic_nodes_offline_after }}"
|
2017-06-11 20:26:34 +02:00
|
|
|
|
2018-01-15 12:32:51 +01:00
|
|
|
[[nodes.output.meshviewer-ffrgb]]
|
|
|
|
enable = {{ yanic_meshviewer_ffrgb_enable | ternary('true','false') }}
|
|
|
|
path = "{{ yanic_meshviewer_ffrgb_path }}"
|
2017-06-11 20:26:34 +02:00
|
|
|
|
2018-07-09 22:38:49 +02:00
|
|
|
[nodes.output.meshviewer-ffrgb.filter]
|
|
|
|
no_owner = true
|
2021-08-19 14:08:12 +02:00
|
|
|
{% if yanic_publisher == false %}
|
2020-11-23 19:02:19 +01:00
|
|
|
blocklist = []
|
2018-07-10 18:14:13 +02:00
|
|
|
sites = ["{{ site }}"]
|
2018-07-09 22:38:49 +02:00
|
|
|
has_location = true
|
2021-08-19 14:08:12 +02:00
|
|
|
{% endif %}
|
2018-07-09 22:38:49 +02:00
|
|
|
|
|
|
|
#[nodes.output.meshviewer-ffrgb.filter.in_area]
|
|
|
|
#latitude_min = 34.30
|
|
|
|
#latitude_max = 71.85
|
|
|
|
#longitude_min = -24.96
|
|
|
|
#longitude_max = 39.72
|
|
|
|
|
2018-01-15 12:32:51 +01:00
|
|
|
[[nodes.output.meshviewer]]
|
|
|
|
enable = {{ yanic_meshviewer_enable | ternary('true','false') }}
|
|
|
|
version = {{ yanic_meshviewer_version }}
|
|
|
|
nodes_path = "{{ yanic_meshviewer_nodes }}"
|
|
|
|
graph_path = "{{ yanic_meshviewer_graph }}"
|
2017-06-11 20:26:34 +02:00
|
|
|
|
2018-07-09 22:38:49 +02:00
|
|
|
[nodes.output.meshviewer.filter]
|
|
|
|
no_owner = true
|
|
|
|
|
|
|
|
[[nodes.output.nodelist]]
|
2020-11-23 22:22:23 +01:00
|
|
|
enable = {{ yanic_nodelist_enable | ternary('true','false') }}
|
2018-07-09 22:38:49 +02:00
|
|
|
path = "/var/www/html/meshviewer/data/nodelist.json"
|
|
|
|
|
|
|
|
[nodes.output.nodelist.filter]
|
|
|
|
no_owner = true
|
|
|
|
|
2017-06-11 20:26:34 +02:00
|
|
|
[database]
|
|
|
|
delete_after = "{{ yanic_database_delete_after }}"
|
|
|
|
delete_interval = "{{ yanic_database_delete_interval }}"
|
|
|
|
|
|
|
|
{% for db in yanic_influxdb %}
|
|
|
|
[[database.connection.influxdb]]
|
|
|
|
enable = {{ db.enable | ternary('true','false') }}
|
|
|
|
address = "{{ db.host }}"
|
|
|
|
database = "{{ db.database }}"
|
|
|
|
username = "{{ db.username }}"
|
|
|
|
password = "{{ db.password }}"
|
|
|
|
{% endfor %}
|
|
|
|
|
2018-01-15 12:32:51 +01:00
|
|
|
[database.connection.influxdb.tags]
|
|
|
|
|
|
|
|
{% for db in yanic_graphite %}
|
|
|
|
[[database.connection.graphite]]
|
2017-06-11 20:26:34 +02:00
|
|
|
enable = {{ db.enable | ternary('true','false') }}
|
2018-01-15 12:32:51 +01:00
|
|
|
address = "{{ db.address }}"
|
|
|
|
prefix = "{{ db.prefix }}"
|
2017-06-11 20:26:34 +02:00
|
|
|
{% endfor %}
|
2018-07-09 22:38:49 +02:00
|
|
|
|
|
|
|
[[database.connection.respondd]]
|
2020-11-23 22:22:23 +01:00
|
|
|
enable = {{ yanic_dbc_repondd_enable | ternary('true','false') }}
|
2018-07-09 22:38:49 +02:00
|
|
|
type = "udp6"
|
2020-11-23 22:22:23 +01:00
|
|
|
address = "{{ yanic_dbc_repondd_remotehost }}"
|
2018-07-09 22:38:49 +02:00
|
|
|
|
|
|
|
[[database.connection.logging]]
|
2018-07-10 01:03:22 +02:00
|
|
|
enable = false
|
2018-07-09 22:38:49 +02:00
|
|
|
path = "/var/log/yanic.log"
|