From a46645607b3e20cf2f69a51e976457c201830c4c Mon Sep 17 00:00:00 2001 From: N Date: Wed, 15 Jul 2020 13:58:17 +0100 Subject: [PATCH] fix(minion): fix requisites from recent prs --- salt/master.sls | 3 +++ salt/minion.sls | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/salt/master.sls b/salt/master.sls index 20476c6..28ae125 100644 --- a/salt/master.sls +++ b/salt/master.sls @@ -55,8 +55,11 @@ salt-master: - enable: {{ salt_settings.master_service_details.enabled }} - name: {{ salt_settings.master_service }} - watch: + {%- if grains.kernel|lower == 'darwin' %} - file: salt-master-macos + {%- else %} - file: salt-master + {%- endif %} - file: remove-old-master-conf-file {% endif %} {% if salt_settings.master_remove_config %} diff --git a/salt/minion.sls b/salt/minion.sls index e45f1cb..1997332 100644 --- a/salt/minion.sls +++ b/salt/minion.sls @@ -51,6 +51,8 @@ salt-minion-macos: interval: 10 splay: 10 - require_in: + - service: salt-minion + - watch_in: - service: salt-minion {%- endif %} {%- endif %} @@ -104,8 +106,6 @@ salt-minion: - enable: {{ salt_settings.minion_service_details.enabled }} - name: {{ salt_settings.minion_service }} - watch: - - file: salt-master-macos - - file: salt-master - file: remove-old-minion-conf-file {% endif %} {%- if not salt_settings.restart_via_at %}