From a8d1b9eb90452d1e47518965c4f82cd12b765eb4 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 11 Jan 2022 09:29:12 -0500 Subject: [PATCH] restart salt-minion at end of run if mine_functions changes --- salt/salt/minion.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/salt/minion.sls b/salt/salt/minion.sls index 38f8889c3..d8bebf0b5 100644 --- a/salt/salt/minion.sls +++ b/salt/salt/minion.sls @@ -84,6 +84,8 @@ mine_functions: - name: /etc/salt/minion.d/mine_functions.conf - source: salt://salt/etc/minion.d/mine_functions.conf - template: jinja + - listen_in: + - service: salt_minion_service # this has to be outside the if statement above since there are _in calls to this state salt_minion_service: @@ -91,8 +93,6 @@ salt_minion_service: - name: salt-minion - enable: True - onlyif: test "{{INSTALLEDSALTVERSION}}" == "{{SALTVERSION}}" - - watch: - - file: mine_functions patch_pkg: pkg.installed: