paulbsd-salt/states/grafana/files/default/grafana.ini.jinja

18 lines
567 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
########################################################################
# File managed by Salt at <{{ source }}>.
# Your changes will be overwritten.
########################################################################
{%- macro render_key_value_pairs(cfg) %}
{%- for k,v in cfg.items() -%}
{{ k }} = {{ v }}
{% endfor %}
{%- endmacro %}
{{ render_key_value_pairs(config.get("default", {})) }}
{% for section, cfg in config.items() %}
{%- if section == "default" %}{% continue %}{% endif %}
[{{section}}]
{{ render_key_value_pairs(cfg) }}
{% endfor %}