mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
remove the salt-minion check for schedules
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
{% if salt['pillar.get']('patch:os:schedule_name') %}
|
{% if salt['pillar.get']('patch:os:schedule_name') %}
|
||||||
{% if salt['service.status']('salt-minion', True) %}
|
|
||||||
{% set patch_os_pillar = salt['pillar.get']('patch:os') %}
|
{% set patch_os_pillar = salt['pillar.get']('patch:os') %}
|
||||||
{% set schedule_name = patch_os_pillar.schedule_name %}
|
{% set schedule_name = patch_os_pillar.schedule_name %}
|
||||||
{% set splay = patch_os_pillar.get('splay', 300) %}
|
{% set splay = patch_os_pillar.get('splay', 300) %}
|
||||||
@@ -63,7 +62,6 @@ remove_patch_os_schedule:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
no_patch_os_schedule_name_set:
|
no_patch_os_schedule_name_set:
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
include:
|
include:
|
||||||
- salt.minion-state-apply-test
|
- salt.minion-state-apply-test
|
||||||
|
|
||||||
{% if salt['service.status']('salt-minion', True) %}
|
|
||||||
state-apply-test:
|
state-apply-test:
|
||||||
schedule.present:
|
schedule.present:
|
||||||
- name: salt-minion-state-apply-test
|
- name: salt-minion-state-apply-test
|
||||||
@@ -18,4 +17,3 @@ state-apply-test:
|
|||||||
- identifier: so-salt-minion-check
|
- identifier: so-salt-minion-check
|
||||||
- user: root
|
- user: root
|
||||||
- minute: '*/5'
|
- minute: '*/5'
|
||||||
{% endif %}
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{% if salt['service.status']('salt-minion', True) %}
|
|
||||||
schedule:
|
schedule:
|
||||||
schedule.present:
|
schedule.present:
|
||||||
- function: state.highstate
|
- function: state.highstate
|
||||||
- minutes: 15
|
- minutes: 15
|
||||||
- maxrunning: 1
|
- maxrunning: 1
|
||||||
{% endif %}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user