From d0e7b5b55ae6d13d0386bc8d99ab3564a105330e Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 18 Nov 2020 12:32:21 -0500 Subject: [PATCH] only ensure salt-minion service is running if salt is on right verison https://github.com/Security-Onion-Solutions/securityonion/issues/1961 --- salt/salt/minion.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/salt/minion.sls b/salt/salt/minion.sls index 4a92c8d80..f7d2126c1 100644 --- a/salt/salt/minion.sls +++ b/salt/salt/minion.sls @@ -26,4 +26,5 @@ salt_minion_package: salt_minion_service: service.running: - name: salt-minion - - enable: True \ No newline at end of file + - enable: True + - onlyif: "[[ '{{INSTALLEDSALTVERSION}}' == '{{SALTVERSION}}' ]]" \ No newline at end of file