From e6dd15ef0d4a294bef62c1d1cfcfdec01f3267ed Mon Sep 17 00:00:00 2001 From: Julien Mailleret Date: Thu, 21 Nov 2019 11:32:20 +0100 Subject: [PATCH] indent yaml for config file (#630) --- templates/elasticsearch.yml.j2 | 2 +- templates/security/role_mapping.yml.j2 | 2 +- templates/security/roles.yml.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/elasticsearch.yml.j2 b/templates/elasticsearch.yml.j2 index 6adaa0d..18eb04b 100644 --- a/templates/elasticsearch.yml.j2 +++ b/templates/elasticsearch.yml.j2 @@ -1,6 +1,6 @@ {% if es_config %} -{{ es_config | to_nice_yaml }} +{{ es_config | to_nice_yaml(indent=2) }} {% endif %} {% if es_config['cluster.name'] is not defined %} diff --git a/templates/security/role_mapping.yml.j2 b/templates/security/role_mapping.yml.j2 index 2584375..a3af322 100644 --- a/templates/security/role_mapping.yml.j2 +++ b/templates/security/role_mapping.yml.j2 @@ -1 +1 @@ -{{ es_role_mapping | to_nice_yaml }} \ No newline at end of file +{{ es_role_mapping | to_nice_yaml(indent=2) }} diff --git a/templates/security/roles.yml.j2 b/templates/security/roles.yml.j2 index 9f211f2..149d458 100644 --- a/templates/security/roles.yml.j2 +++ b/templates/security/roles.yml.j2 @@ -1 +1 @@ -{{ es_roles.file | to_nice_yaml }} \ No newline at end of file +{{ es_roles.file | to_nice_yaml(indent=2) }}