1
0
Fork 0

sphinx fix

This commit is contained in:
Ales Komarek 2016-01-15 14:26:09 +01:00
parent 916a45c7e7
commit c867179757
1 changed files with 14 additions and 2 deletions

View File

@ -7,11 +7,23 @@ doc:
name: server name: server
param: param:
bind: bind:
name: Network bind name: Network
value: {{ server.bind.address }}:{{ server.bind.port }} value: {{ server.bind.address }}:{{ server.bind.port }}
endpoint: endpoint:
{%- if server.bind.address == '0.0.0.0' %}
{%- for address in salt['grains.item']('ipv4')['ipv4'] %}
{%- if address != '127.0.0.1' %}
grafana_server:
name: default
type: grafana_server
address: http://{{ address }}:{{ server.bind.port }}/
protocol: http
{%- endif %}
{%- endfor %}
{%- else %}
grafana_server: grafana_server:
name: default name: default
type: grafana_server type: grafana_server
address: http://{{ server.bind.address }}:{{ server.bind.port }}/ address: http://{{ server.bind.address }}:{{ server.bind.port }}/
protocol: http protocol: http
{%- endif %}