From e75d6efbf9632d79a85f1795a966e7a6b5312fe5 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 19 Jul 2020 14:32:59 +0200 Subject: [PATCH] updated postfix state --- states/postfix/config.sls | 8 +++++--- states/postfix/templates/plain.cf.j2 | 1 + states/postfix/templates/plain.j2 | 0 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 states/postfix/templates/plain.cf.j2 delete mode 100644 states/postfix/templates/plain.j2 diff --git a/states/postfix/config.sls b/states/postfix/config.sls index 8194f8a..2bf2c17 100644 --- a/states/postfix/config.sls +++ b/states/postfix/config.sls @@ -8,7 +8,7 @@ postfix-pgsql-dir: postfix-main-cf: file.managed: - - name: {{ postfix.base_dir }}/pgsql/main.cf + - name: {{ postfix.base_dir }}/main.cf - source: salt://postfix/templates/main.cf.j2 - user: root - group: root @@ -37,7 +37,9 @@ postfix-pgsql-{{ key }}: - group: root - mode: 644 - template: jinja - - context: {{ value }} + - context: + value: | + {{ value|indent(8) }} - watch_in: - service: postfix-service -{% endfor %} \ No newline at end of file +{% endfor %} diff --git a/states/postfix/templates/plain.cf.j2 b/states/postfix/templates/plain.cf.j2 new file mode 100644 index 0000000..40cf72a --- /dev/null +++ b/states/postfix/templates/plain.cf.j2 @@ -0,0 +1 @@ +{{ value }} diff --git a/states/postfix/templates/plain.j2 b/states/postfix/templates/plain.j2 deleted file mode 100644 index e69de29..0000000