From 0889d490254867caba0713dc5a5c50d95a648a41 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 21 Dec 2022 14:00:10 -0500 Subject: [PATCH] Ensure user/pass values are quoted due to symbol chars appearing in the values --- salt/logstash/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/logstash/init.sls b/salt/logstash/init.sls index bf4d03984..c8130570e 100644 --- a/salt/logstash/init.sls +++ b/salt/logstash/init.sls @@ -66,8 +66,8 @@ ls_pipeline_{{PL}}_{{CONFIGFILE.split('.')[0] | replace("/","_") }}: - template: jinja - defaults: GLOBALS: {{ GLOBALS }} - ES_USER: {{ salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:user', '') }} - ES_PASS: {{ salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:pass', '') }} + ES_USER: "{{ salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:user', '') }}" + ES_PASS: "{{ salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:pass', '') }}" {% else %} - name: /opt/so/conf/logstash/pipelines/{{PL}}/{{CONFIGFILE.split('/')[1]}} {% endif %}