mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-30 08:28:18 +02:00
only allow state to run if it is in top for the node
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
{% set show_top = salt['state.show_top']() %}
|
||||
{% set top_states = show_top.values() | join(', ') %}
|
||||
|
||||
{% if 'playbook' in top_states %}
|
||||
|
||||
{% set MANAGERIP = salt['pillar.get']('manager:mainip', '') %}
|
||||
{% set VERSION = salt['pillar.get']('global:soversion', 'HH1.2.2') %}
|
||||
{% set IMAGEREPO = salt['pillar.get']('global:imagerepo') %}
|
||||
@@ -96,4 +101,6 @@ so-playbookruleupdatecron:
|
||||
- name: /usr/sbin/so-playbook-ruleupdate > /opt/so/log/playbook/update.log 2>&1
|
||||
- user: root
|
||||
- minute: '1'
|
||||
- hour: '6'
|
||||
- hour: '6'
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user