From 02c31df0c5cca2863a46fd3c517a6610bb331548 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Thu, 3 Feb 2022 16:14:40 +0000 Subject: [PATCH] fix(minion): respect `minion_remove_config: true` Fixes #527. --- salt/minion.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/minion.sls b/salt/minion.sls index c57295f..1a72d9a 100644 --- a/salt/minion.sls +++ b/salt/minion.sls @@ -192,6 +192,7 @@ remove-macpackage-salt: - force: True {% endif %} + {% if not salt_settings.minion_remove_config %} permissions-minion-config: file.managed: - name: {{ salt_settings.config_path | path_join('minion') }} @@ -206,6 +207,7 @@ permissions-minion-config: - mode: 640 {% endif %} - replace: False + {% endif %} salt-minion-pki-dir: file.directory: