fix(minion): respect `minion_remove_config: true`

Fixes #527.
This commit is contained in:
Imran Iqbal 2022-02-03 16:14:40 +00:00
parent 8015fe0c92
commit 02c31df0c5
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
1 changed files with 2 additions and 0 deletions

View File

@ -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: