Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[changes] Rendered ZeroTier configuration in JSON format
- Loading branch information
1 parent
6270334
commit 15ae24e
Showing
4 changed files
with
226 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
{% for vpn in data.zerotier %} | ||
# zerotier config: {{ vpn.nwid }} | ||
// zerotier config: {{ vpn.nwid }} | ||
|
||
{% for key, value in vpn.items() %} | ||
{% set key = key.replace('_', '-') %} | ||
{% if key != 'name' %} | ||
{% if value is string or value is number %} | ||
{{ key }}={{ value }} | ||
{% elif value is iterable %} | ||
{% for element in value %} | ||
{{ key }}={{ element }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{{ vpn | tojson(indent=2)}} | ||
|
||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters