summaryrefslogtreecommitdiffstats
path: root/salt/profile/matterbridge/files/etc/matterbridge/matterbridge.toml.j2
blob: b234c9f9e4cb58d61a24399e4cce7aa76a430036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{%- set header = salt['pillar.get']('managed_header_pound') -%}
{{ header }}

{%- if general | length %}
[general]
{%- for option, value in general.items() %}
{%- if value is string %}
{%- set value = '"' ~ value ~ '"' %}
{%- endif %}
{{ option }}={{ value }}
{%- endfor %}
{% endif %}

{%- for account, config in accounts.items() %}
[{{ account }}]
{%- for option, value in config.items() %}
{%- if value is string %}
{%- set value = '"' ~ value ~ '"' %}
{%- endif %}
{{ option }}={{ value }}
{%- endfor %}
{% endfor %}

{%- for gateway, config in gateways.items() %}
[[gateway]]
name="{{ gateway }}"
enable=true
{%- for account, channel in config.items() %}
  [[gateway.inout]]
  account="{{ account }}"
  channel="{{ channel }}"
{%- endfor %}
{% endfor %}