From 83e60fd840d7e4918e47628eeb19bd83ef9dc1c1 Mon Sep 17 00:00:00 2001 From: Tibold Kandrai Date: Thu, 10 Aug 2017 14:48:02 +0200 Subject: [PATCH] Fixed supporting multiline banner_string defined in the pillar. --- openssh/banner.sls | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openssh/banner.sls b/openssh/banner.sls index 362729c..bc167d2 100644 --- a/openssh/banner.sls +++ b/openssh/banner.sls @@ -7,8 +7,7 @@ sshd_banner: file.managed: - name: {{ openssh.banner }} {% if openssh.banner_string is defined %} - - contents: | - {{ openssh.banner_string }} + - contents: {{ openssh.banner_string | yaml }} {% else %} - source: {{ openssh.banner_src }} - template: jinja