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

View File

@@ -1,4 +1,4 @@
{% if salt['pillar.get']('patch:os:schedule_name') %}
{% if salt['pillar.get']('patch:os:schedule_name') and salt['service.status']('salt-minion', True) %}
{% set patch_os_pillar = salt['pillar.get']('patch:os') %}
{% set schedule_name = patch_os_pillar.schedule_name %}
{% set splay = patch_os_pillar.get('splay', 300) %}