From 430c735b0d27e87f389f7e695efc128a97e71550 Mon Sep 17 00:00:00 2001 From: Dominic Ferrantelli Date: Thu, 12 Mar 2015 16:14:34 -0700 Subject: [PATCH] added automatic indentation of postgres:postgresconf to allow for multiple lines to be added to the conf --- postgres/init.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgres/init.sls b/postgres/init.sls index 8145e1f..1c3611e 100644 --- a/postgres/init.sls +++ b/postgres/init.sls @@ -70,7 +70,8 @@ postgresql-conf: - name: {{ postgres.conf_dir }}/postgresql.conf - marker_start: "# Managed by SaltStack: listen_addresses: please do not edit" - marker_end: "# Managed by SaltStack: end of salt managed zone --" - - content: {{ salt['pillar.get']('postgres:postgresconf') }} + - content: | + {{ salt['pillar.get']('postgres:postgresconf') | indent(8) }} - show_changes: True - append_if_not_found: True - watch_in: