mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
disable steno in so-status for import node
This commit is contained in:
@@ -135,16 +135,17 @@ 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 STENOOPTIONS.status == 'running' %}
|
|
||||||
delete_so-steno_so-status.disabled:
|
{% if not STENOOPTIONS.start %}
|
||||||
file.uncomment:
|
|
||||||
- name: /opt/so/conf/so-status/so-status.conf
|
|
||||||
- regex: ^so-steno$
|
|
||||||
{% elif STENOOPTIONS.status == 'stopped' %}
|
|
||||||
so-steno_so-status.disabled:
|
so-steno_so-status.disabled:
|
||||||
file.comment:
|
file.comment:
|
||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
- regex: ^so-steno$
|
- regex: ^so-steno$
|
||||||
|
{% else %}
|
||||||
|
delete_so-steno_so-status.disabled:
|
||||||
|
file.uncomment:
|
||||||
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
|
- regex: ^so-steno$
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -1941,12 +1941,6 @@ sensor_pillar() {
|
|||||||
if [ "$HNSENSOR" != 'inherit' ]; then
|
if [ "$HNSENSOR" != 'inherit' ]; then
|
||||||
echo " hnsensor: $HNSENSOR" >> "$pillar_file"
|
echo " hnsensor: $HNSENSOR" >> "$pillar_file"
|
||||||
fi
|
fi
|
||||||
if [[ $is_import ]]; then
|
|
||||||
printf '%s\n'\
|
|
||||||
"steno:"\
|
|
||||||
" enabled: false" >> "$pillar_file"
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set_default_log_size() {
|
set_default_log_size() {
|
||||||
|
|||||||
Reference in New Issue
Block a user