formatting
This commit is contained in:
@@ -6,31 +6,30 @@
|
|||||||
|
|
||||||
{% for key in defaults['global'].keys() -%}
|
{% for key in defaults['global'].keys() -%}
|
||||||
{% if key in pillar_global -%}
|
{% if key in pillar_global -%}
|
||||||
{{key}} = {{pillar_global[key]}}
|
{{key}} = {{pillar_global[key]}}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
{{key}} = {{defaults['global'][key]}}
|
{{key}} = {{defaults['global'][key]}}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
INTERNAL_TOKEN = {{secrets['INTERNAL_TOKEN']}}
|
INTERNAL_TOKEN = {{secrets['INTERNAL_TOKEN']}}
|
||||||
INSTALL_LOCK = true
|
INSTALL_LOCK = true
|
||||||
SECRET_KEY = {{secrets['SECRET_KEY']}}
|
SECRET_KEY = {{secrets['SECRET_KEY']}}
|
||||||
|
|
||||||
{% for section in defaults['sections'].keys() -%}
|
{% for section in defaults['sections'].keys() -%}
|
||||||
[{{section}}]
|
[{{section}}]
|
||||||
{% if section == 'server' -%}
|
{% if section == 'server' -%}
|
||||||
LFS_JWT_SECRET = {{secrets['LFS_JWT_SECRET']}}
|
LFS_JWT_SECRET = {{secrets['LFS_JWT_SECRET']}}
|
||||||
{% elif section == 'database' -%}
|
{% elif section == 'database' -%}
|
||||||
NAME = {{pillar_sections['database']['NAME']}}
|
NAME = {{pillar_sections['database']['NAME']}}
|
||||||
USER = {{pillar_sections['database']['USER']}}
|
USER = {{pillar_sections['database']['USER']}}
|
||||||
PASSWD = `{{pillar_sections['database']['PASSWD']}}`
|
PASSWD = `{{pillar_sections['database']['PASSWD']}}`
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% for key in defaults['sections'][section] -%}
|
{% for key in defaults['sections'][section] -%}
|
||||||
{% if section in pillar_sections and key in pillar_sections[section] -%}
|
{% if section in pillar_sections and key in pillar_sections[section] -%}
|
||||||
{{key}} = {{pillar_sections[section][key]}}
|
{{key.ljust(33)}} = {{pillar_sections[section][key]}}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
{{key}} = {{defaults['sections'][section][key]}}
|
{{key.ljust(33)}} = {{defaults['sections'][section][key]}}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user