if the salt-minion service isnt running when the state is rendered, dont try to apply schedule - https://github.com/Security-Onion-Solutions/securityonion/issues/1333

This commit is contained in:
m0duspwnens
2021-06-18 14:56:01 -04:00
parent 558a90aaf8
commit 48c3cb4816
3 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -1,6 +1,7 @@
include:
- salt.minion-state-apply-test
{% if salt['service.status']('salt-minion', True) %}
state-apply-test:
schedule.present:
- name: salt-minion-state-apply-test
@@ -16,4 +17,5 @@ state-apply-test:
cron.present:
- identifier: so-salt-minion-check
- user: root
- minute: '*/5'
- minute: '*/5'
{% endif %}