mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
change container to abesent of pcap is disabled
This commit is contained in:
@@ -111,6 +111,7 @@ stenolog:
|
|||||||
|
|
||||||
so-steno:
|
so-steno:
|
||||||
docker_container.{{ STENOOPTIONS.status }}:
|
docker_container.{{ STENOOPTIONS.status }}:
|
||||||
|
{% if STENOOPTIONS.status == 'running' %}
|
||||||
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-steno:{{ VERSION }}
|
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-steno:{{ VERSION }}
|
||||||
- start: {{ STENOOPTIONS.start }}
|
- start: {{ STENOOPTIONS.start }}
|
||||||
- network_mode: host
|
- network_mode: host
|
||||||
@@ -126,6 +127,9 @@ so-steno:
|
|||||||
- /opt/so/log/stenographer:/var/log/stenographer:rw
|
- /opt/so/log/stenographer:/var/log/stenographer:rw
|
||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/steno/config
|
- file: /opt/so/conf/steno/config
|
||||||
|
{% else %} {# if stenographer isn't enabled, then stop and remove the container #}
|
||||||
|
- force: True
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
append_so-steno_so-status.conf:
|
append_so-steno_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
@@ -133,7 +137,6 @@ append_so-steno_so-status.conf:
|
|||||||
- text: so-steno
|
- text: so-steno
|
||||||
- unless: grep -q so-steno /opt/so/conf/so-status/so-status.conf
|
- unless: grep -q so-steno /opt/so/conf/so-status/so-status.conf
|
||||||
|
|
||||||
|
|
||||||
{% if not STENOOPTIONS.start %}
|
{% if not STENOOPTIONS.start %}
|
||||||
so-steno_so-status.disabled:
|
so-steno_so-status.disabled:
|
||||||
file.comment:
|
file.comment:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if ENABLED is sameas false %}
|
{% if ENABLED is sameas false %}
|
||||||
{% do STENOOPTIONS.update({'status': 'stopped'}) %}
|
{% do STENOOPTIONS.update({'status': 'absent'}) %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% do STENOOPTIONS.update({'status': 'running'}) %}
|
{% do STENOOPTIONS.update({'status': 'running'}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user