mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-11 23:32:02 +02:00
- schedule highstate every 2 hours (was 15 minutes); interval lives in global:push:highstate_interval_hours so the SOC admin UI can tune it and so-salt-minion-check derives its threshold as (interval + 1) * 3600 - add inotify beacon on the manager + master reactor + orch.push_batch that writes per-app intent files, with a so-push-drainer schedule on the manager that debounces, dedupes, and dispatches a single orchestration - pillar_push_map.yaml allowlists the apps whose pillar changes trigger an immediate targeted state.apply (targets verified against salt/top.sls); edits under pillar/minions/ trigger a state.highstate on that one minion - host-batch every push orchestration (batch: 25%, batch_wait: 15) so rule changes don't thundering-herd large fleets - new global:push:enabled kill-switch tears down the beacon, reactor config, and drainer schedule on the next highstate for operators who want to keep highstate-only behavior - set restart_policy: unless-stopped on 23 container states so docker recovers crashes without waiting for the next highstate; leave registry (always), strelka/backend (on-failure), kratos, and hydra alone with inline comments explaining why
27 lines
704 B
Plaintext
27 lines
704 B
Plaintext
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
|
{% from 'global/map.jinja' import GLOBALMERGED %}
|
|
|
|
highstate_schedule:
|
|
schedule.present:
|
|
- function: state.highstate
|
|
- hours: {{ GLOBALMERGED.push.highstate_interval_hours }}
|
|
- maxrunning: 1
|
|
{% if not GLOBALS.is_manager %}
|
|
- splay: 1800
|
|
{% endif %}
|
|
|
|
{% if GLOBALS.is_manager and GLOBALMERGED.push.enabled %}
|
|
push_drain_schedule:
|
|
schedule.present:
|
|
- function: cmd.run
|
|
- job_args:
|
|
- /usr/sbin/so-push-drainer
|
|
- seconds: {{ GLOBALMERGED.push.drain_interval }}
|
|
- maxrunning: 1
|
|
- return_job: False
|
|
{% elif GLOBALS.is_manager %}
|
|
push_drain_schedule:
|
|
schedule.absent:
|
|
- name: push_drain_schedule
|
|
{% endif %}
|