Skip to content

Commit

Permalink
fix(minion): respect minion_remove_config: true
Browse files Browse the repository at this point in the history
Fixes #527.
  • Loading branch information
myii committed Feb 3, 2022
1 parent 8015fe0 commit 02c31df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/minion.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -206,6 +207,7 @@ permissions-minion-config:
- mode: 640
{% endif %}
- replace: False
{% endif %}
salt-minion-pki-dir:
file.directory:
Expand Down

0 comments on commit 02c31df

Please sign in to comment.