paulbsd-salt/states/grafana/files/default/grafana.ini.jinja
2020-07-10 00:58:55 +02:00

18 lines
567 B
Django/Jinja

########################################################################
# 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 %}