From f87dce8ec1629a6254d4e7088c629bea79908e82 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 1 Jun 2021 09:38:07 -0400 Subject: [PATCH] generate pillar file if auth enabled or not --- salt/elasticsearch/auth.sls | 2 -- 1 file changed, 2 deletions(-) diff --git a/salt/elasticsearch/auth.sls b/salt/elasticsearch/auth.sls index 704d743ce..748e50d0b 100644 --- a/salt/elasticsearch/auth.sls +++ b/salt/elasticsearch/auth.sls @@ -31,9 +31,7 @@ elastic_auth_pillar: # a highstate runs, we only manage the file each user isn't present in the file. if the # pillar file doesn't exists, then the default vault provided to pillar.get should not # be within the file either, so it should then be created -{% if salt['pillar.get']('elasticsearch:auth', False) %} - unless: {% for so_app_user, values in salt['pillar.get']('elasticsearch:auth:users', {'so_noapp_user': {'user': 'r@NDumu53Rd0NtDOoP'}}).items() %} - grep {{ values.user }} /opt/so/saltstack/local/pillar/elasticsearch/auth.sls {% endfor%} -{% endif %}