forked from FF-RGB/ansible
yanic: make suitable for grafana host
This commit is contained in:
parent
1b4ed18171
commit
333c4b82e9
25
host_vars/grafana.regensburg.freifunk.net
Normal file
25
host_vars/grafana.regensburg.freifunk.net
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# yanic needs this
|
||||||
|
site_code: ffrgb_cty
|
||||||
|
|
||||||
|
yanic_repondd_enable: false
|
||||||
|
|
||||||
|
yanic_respondd_interface: ens18
|
||||||
|
yanic_respondd_ip: true
|
||||||
|
|
||||||
|
yanic_nodes_prune_after: 60d
|
||||||
|
yanic_nodes_offline_after: 5m
|
||||||
|
|
||||||
|
yanic_meshviewer_enable: false
|
||||||
|
|
||||||
|
yanic_nodelist_enable: true
|
||||||
|
|
||||||
|
yanic_database_delete_after: 720d
|
||||||
|
|
||||||
|
yanic_influxdb:
|
||||||
|
- enable: true
|
||||||
|
host: http://127.0.0.1:8086
|
||||||
|
database: ffrgb
|
||||||
|
username: ""
|
||||||
|
password: ""
|
@ -3,10 +3,13 @@
|
|||||||
yanic_source: github.com/ffrgb/yanic
|
yanic_source: github.com/ffrgb/yanic
|
||||||
|
|
||||||
yanic_publisher: false
|
yanic_publisher: false
|
||||||
yanic_respondd: true
|
|
||||||
|
yanic_respondd_enable: true
|
||||||
yanic_respondd_collect_interval: 1m
|
yanic_respondd_collect_interval: 1m
|
||||||
yanic_respondd_synchronize_interval: 1m
|
yanic_respondd_synchronize_interval: 1m
|
||||||
|
|
||||||
yanic_respondd_interface: br-{{ site_code }}
|
yanic_respondd_interface: br-{{ site_code }}
|
||||||
|
yanic_respondd_ip: false
|
||||||
|
|
||||||
yanic_webserver: false
|
yanic_webserver: false
|
||||||
yanic_webserver_bind: "127.0.0.1:8080"
|
yanic_webserver_bind: "127.0.0.1:8080"
|
||||||
@ -14,9 +17,9 @@ yanic_webserver_webroot: "/var/www/html/meshviewer"
|
|||||||
|
|
||||||
yanic_nodes: true
|
yanic_nodes: true
|
||||||
yanic_nodes_state_path: "/var/lib/yanic/yanic.json"
|
yanic_nodes_state_path: "/var/lib/yanic/yanic.json"
|
||||||
|
yanic_nodes_prune_after: 7d
|
||||||
yanic_nodes_save_interval: 5s
|
yanic_nodes_save_interval: 5s
|
||||||
yanic_nodes_offline_after: 10m
|
yanic_nodes_offline_after: 10m
|
||||||
yanic_nodes_prune_after: 7d
|
|
||||||
|
|
||||||
yanic_meshviewer_ffrgb_enable: true
|
yanic_meshviewer_ffrgb_enable: true
|
||||||
yanic_meshviewer_ffrgb_path: "/var/www/html/meshviewer/data/meshviewer.json"
|
yanic_meshviewer_ffrgb_path: "/var/www/html/meshviewer/data/meshviewer.json"
|
||||||
@ -27,19 +30,22 @@ yanic_meshviewer_path: "/var/www/html/meshviewer/data"
|
|||||||
yanic_meshviewer_nodes: "{{ yanic_meshviewer_path }}/nodes.json"
|
yanic_meshviewer_nodes: "{{ yanic_meshviewer_path }}/nodes.json"
|
||||||
yanic_meshviewer_graph: "{{ yanic_meshviewer_path }}/graph.json"
|
yanic_meshviewer_graph: "{{ yanic_meshviewer_path }}/graph.json"
|
||||||
|
|
||||||
|
yanic_nodelist_enable: false
|
||||||
|
|
||||||
yanic_database_delete_after: 7d
|
yanic_database_delete_after: 7d
|
||||||
yanic_database_delete_interval: 1h
|
yanic_database_delete_interval: 1h
|
||||||
|
|
||||||
yanic_repondd_enable: true
|
|
||||||
yanic_repondd_remotehost: "[2a01:4f8:140:515d::2]:10001"
|
|
||||||
|
|
||||||
yanic_influxdb:
|
yanic_influxdb:
|
||||||
- enable: false
|
- enable: false
|
||||||
host: http://88.99.2.28:8086
|
host: http://127.0.0.1:8086
|
||||||
database: ffrgb
|
database: ffrgb
|
||||||
username: ""
|
username: ""
|
||||||
password: ""
|
password: ""
|
||||||
|
|
||||||
yanic_graphite:
|
yanic_graphite:
|
||||||
- enable: false
|
- enable: false
|
||||||
address: "localhost:2003"
|
address: "localhost:2003"
|
||||||
prefix: "freifunk"
|
prefix: "freifunk"
|
||||||
|
|
||||||
|
yanic_dbc_repondd_enable: true
|
||||||
|
yanic_dbc_repondd_remotehost: "grafana.regensburg.freifunk.net:10001"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
[respondd]
|
[respondd]
|
||||||
enable = {{ yanic_respondd | ternary('true','false') }}
|
enable = {{ yanic_respondd_enable | ternary('true','false') }}
|
||||||
collect_interval = "{{ yanic_respondd_collect_interval }}"
|
collect_interval = "{{ yanic_respondd_collect_interval }}"
|
||||||
synchronize = "{{ yanic_respondd_synchronize_interval }}"
|
synchronize = "{{ yanic_respondd_synchronize_interval }}"
|
||||||
|
|
||||||
@ -9,6 +9,11 @@ domains = ["{{ site_code }}"]
|
|||||||
|
|
||||||
[[respondd.interfaces]]
|
[[respondd.interfaces]]
|
||||||
ifname = "{{ yanic_respondd_interface }}"
|
ifname = "{{ yanic_respondd_interface }}"
|
||||||
|
{% if yanic_respondd_ip == true %}
|
||||||
|
ip_address = "{{ ansible_default_ipv6.address }}"
|
||||||
|
send_no_request = true
|
||||||
|
port = 10001
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[webserver]
|
[webserver]
|
||||||
enable = {{ yanic_webserver | ternary('true','false') }}
|
enable = {{ yanic_webserver | ternary('true','false') }}
|
||||||
@ -47,7 +52,7 @@ graph_path = "{{ yanic_meshviewer_graph }}"
|
|||||||
no_owner = true
|
no_owner = true
|
||||||
|
|
||||||
[[nodes.output.nodelist]]
|
[[nodes.output.nodelist]]
|
||||||
enable = false
|
enable = {{ yanic_nodelist_enable | ternary('true','false') }}
|
||||||
path = "/var/www/html/meshviewer/data/nodelist.json"
|
path = "/var/www/html/meshviewer/data/nodelist.json"
|
||||||
|
|
||||||
[nodes.output.nodelist.filter]
|
[nodes.output.nodelist.filter]
|
||||||
@ -76,9 +81,9 @@ prefix = "{{ db.prefix }}"
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
[[database.connection.respondd]]
|
[[database.connection.respondd]]
|
||||||
enable = {{ yanic_repondd_enable | ternary('true','false') }}
|
enable = {{ yanic_dbc_repondd_enable | ternary('true','false') }}
|
||||||
type = "udp6"
|
type = "udp6"
|
||||||
address = "{{ yanic_repondd_remotehost }}"
|
address = "{{ yanic_dbc_repondd_remotehost }}"
|
||||||
|
|
||||||
[[database.connection.logging]]
|
[[database.connection.logging]]
|
||||||
enable = false
|
enable = false
|
||||||
|
Loading…
Reference in New Issue
Block a user