ansible/roles/yanic/templates/config.toml.j2
Bastian Mäuser 5ad344163d
Some checks failed
continuous-integration/drone/push Build is failing
Fix Yanic behaviour on Statserver
2021-08-19 14:08:12 +02:00

93 lines
2.6 KiB
Django/Jinja

# {{ ansible_managed }}
[respondd]
enable = {{ yanic_respondd_enable | ternary('true','false') }}
collect_interval = "{{ yanic_respondd_collect_interval }}"
synchronize = "{{ yanic_respondd_synchronize_interval }}"
[respondd.sites.ffrgb]
domains = ["{{ site_code }}"]
[[respondd.interfaces]]
ifname = "{{ yanic_respondd_interface }}"
{% if yanic_respondd_ip == true %}
ip_address = "{{ ansible_default_ipv6.address }}"
send_no_request = true
port = 10001
{% endif %}
[webserver]
enable = {{ yanic_webserver | ternary('true','false') }}
bind = "{{ yanic_webserver_bind }}"
webroot = "{{ yanic_webserver_webroot }}"
[nodes]
state_path = "{{ yanic_nodes_state_path }}"
prune_after = "{{ yanic_nodes_prune_after }}"
save_interval = "{{ yanic_nodes_save_interval }}"
offline_after = "{{ yanic_nodes_offline_after }}"
[[nodes.output.meshviewer-ffrgb]]
enable = {{ yanic_meshviewer_ffrgb_enable | ternary('true','false') }}
path = "{{ yanic_meshviewer_ffrgb_path }}"
[nodes.output.meshviewer-ffrgb.filter]
no_owner = true
{% if yanic_publisher == false %}
blocklist = []
sites = ["{{ site }}"]
has_location = true
{% endif %}
#[nodes.output.meshviewer-ffrgb.filter.in_area]
#latitude_min = 34.30
#latitude_max = 71.85
#longitude_min = -24.96
#longitude_max = 39.72
[[nodes.output.meshviewer]]
enable = {{ yanic_meshviewer_enable | ternary('true','false') }}
version = {{ yanic_meshviewer_version }}
nodes_path = "{{ yanic_meshviewer_nodes }}"
graph_path = "{{ yanic_meshviewer_graph }}"
[nodes.output.meshviewer.filter]
no_owner = true
[[nodes.output.nodelist]]
enable = {{ yanic_nodelist_enable | ternary('true','false') }}
path = "/var/www/html/meshviewer/data/nodelist.json"
[nodes.output.nodelist.filter]
no_owner = true
[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 %}
[database.connection.influxdb.tags]
{% for db in yanic_graphite %}
[[database.connection.graphite]]
enable = {{ db.enable | ternary('true','false') }}
address = "{{ db.address }}"
prefix = "{{ db.prefix }}"
{% endfor %}
[[database.connection.respondd]]
enable = {{ yanic_dbc_repondd_enable | ternary('true','false') }}
type = "udp6"
address = "{{ yanic_dbc_repondd_remotehost }}"
[[database.connection.logging]]
enable = false
path = "/var/log/yanic.log"