added automatic indentation of postgres:postgresconf to allow for multiple lines to be added to the conf

This commit is contained in:
Dominic Ferrantelli 2015-03-12 16:14:34 -07:00
parent 30490ceb78
commit 430c735b0d

View file

@ -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: