1
0
Fork 0
mirror of synced 2024-11-19 07:35:34 -05:00
formula-grafana/grafana/meta/sphinx.yml

29 lines
947 B
YAML
Raw Normal View History

2015-12-08 06:11:11 -05:00
{%- from "grafana/map.jinja" import server with context %}
2015-12-04 10:43:48 -05:00
doc:
name: Grafana
description: A beautiful, easy to use and feature rich Graphite dashboard replacement and graph editor.
role:
server:
name: server
2015-12-08 06:11:11 -05:00
param:
bind:
2016-01-15 08:26:09 -05:00
name: Network
2015-12-11 08:12:22 -05:00
value: {{ server.bind.address }}:{{ server.bind.port }}
2015-12-08 06:11:11 -05:00
endpoint:
2016-01-15 08:26:09 -05:00
{%- 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 %}
2015-12-08 06:11:11 -05:00
grafana_server:
name: default
type: grafana_server
2015-12-11 08:12:22 -05:00
address: http://{{ server.bind.address }}:{{ server.bind.port }}/
2016-01-15 08:26:09 -05:00
protocol: http
{%- endif %}