From c913a704d9f82b0fc0872baf77992b8a3c8348e0 Mon Sep 17 00:00:00 2001 From: keiran Date: Sat, 30 Mar 2019 20:29:50 -0400 Subject: [PATCH] formatting --- gitea/files/app_ini.jinja | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/gitea/files/app_ini.jinja b/gitea/files/app_ini.jinja index b370fcf..ddb48a1 100644 --- a/gitea/files/app_ini.jinja +++ b/gitea/files/app_ini.jinja @@ -6,31 +6,30 @@ {% for key in defaults['global'].keys() -%} {% if key in pillar_global -%} -{{key}} = {{pillar_global[key]}} +{{key}} = {{pillar_global[key]}} {% else -%} -{{key}} = {{defaults['global'][key]}} +{{key}} = {{defaults['global'][key]}} {% endif -%} {% endfor %} - [security] -INTERNAL_TOKEN = {{secrets['INTERNAL_TOKEN']}} -INSTALL_LOCK = true -SECRET_KEY = {{secrets['SECRET_KEY']}} +INTERNAL_TOKEN = {{secrets['INTERNAL_TOKEN']}} +INSTALL_LOCK = true +SECRET_KEY = {{secrets['SECRET_KEY']}} {% for section in defaults['sections'].keys() -%} [{{section}}] {% if section == 'server' -%} -LFS_JWT_SECRET = {{secrets['LFS_JWT_SECRET']}} +LFS_JWT_SECRET = {{secrets['LFS_JWT_SECRET']}} {% elif section == 'database' -%} -NAME = {{pillar_sections['database']['NAME']}} -USER = {{pillar_sections['database']['USER']}} -PASSWD = `{{pillar_sections['database']['PASSWD']}}` +NAME = {{pillar_sections['database']['NAME']}} +USER = {{pillar_sections['database']['USER']}} +PASSWD = `{{pillar_sections['database']['PASSWD']}}` {% endif -%} {% for key in defaults['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 -%} -{{key}} = {{defaults['sections'][section][key]}} +{{key.ljust(33)}} = {{defaults['sections'][section][key]}} {% endif -%} -{% endfor -%} -{% endfor %} +{% endfor %} +{% endfor -%}