mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-27 11:23:14 +01:00
redo how containers get added to so-status https://github.com/Security-Onion-Solutions/securityonion/issues/1681
This commit is contained in:
@@ -152,6 +152,24 @@ so-steno:
|
||||
- watch:
|
||||
- file: /opt/so/conf/steno/config
|
||||
|
||||
append_so-steno_so-status.conf:
|
||||
file.append:
|
||||
- name: /opt/so/conf/so-status/so-status.conf
|
||||
- text: so-steno
|
||||
|
||||
{% if STENOOPTIONS.status == 'running' %}
|
||||
delete_so-steno_so-status.disabled:
|
||||
file.line:
|
||||
- name: /opt/so/conf/so-status/so-status.disabled.conf
|
||||
- match: so-steno
|
||||
- mode: delete
|
||||
{% elif STENOOPTIONS.status == 'stopped' %}
|
||||
append_so-steno_so-status.disabled:
|
||||
file.append:
|
||||
- name: /opt/so/conf/so-status/so-status.disabled.conf
|
||||
- text: so-steno
|
||||
{% endif %}
|
||||
|
||||
so-sensoroni:
|
||||
docker_container.running:
|
||||
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-soc:{{ VERSION }}
|
||||
@@ -166,6 +184,11 @@ so-sensoroni:
|
||||
- watch:
|
||||
- file: /opt/so/conf/sensoroni/sensoroni.json
|
||||
|
||||
append_so-sensoroni_so-status.conf:
|
||||
file.append:
|
||||
- name: /opt/so/conf/so-status/so-status.conf
|
||||
- text: so-sensoroni
|
||||
|
||||
{% else %}
|
||||
|
||||
pcap_state_not_allowed:
|
||||
|
||||
Reference in New Issue
Block a user