22 lines
777 B
Django/Jinja
22 lines
777 B
Django/Jinja
# Netdata configuration
|
|
|
|
[global]
|
|
{% if hostvars[inventory_hostname].hostname %}
|
|
hostname = {{ hostvars[inventory_hostname].hostname }}
|
|
{% endif %}
|
|
dbengine multihost disk space = {{ dbengine_multihost_disk_space }}
|
|
{% if 'worker' in hostvars[inventory_hostname].group_names %}
|
|
memory mode = none
|
|
{% endif %}
|
|
|
|
[web]
|
|
mode = {{ 'none' if 'worker' in hostvars[inventory_hostname].group_names else 'static-threaded' }}
|
|
{% if 'main' in hostvars[inventory_hostname].group_names %}
|
|
bind to = localhost {{ hostvars['rock64']['ansible_facts']['end0']['ipv4']['address'] }}:19998=streaming
|
|
{% endif %}
|
|
|
|
{% if 'worker' in hostvars[inventory_hostname].group_names %}
|
|
[cloud]
|
|
proxy = http://{{ hostvars['rock64']['ansible_facts']['end0']['ipv4']['address'] }}:3128
|
|
{% endif %}
|