mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fail the state if it isnt in top
This commit is contained in:
@@ -58,4 +58,10 @@ cakeyperms:
|
|||||||
- mode: 640
|
- mode: 640
|
||||||
- group: 939
|
- group: 939
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
ca_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: ca_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -197,4 +197,10 @@ docker:
|
|||||||
service.running:
|
service.running:
|
||||||
- enable: True
|
- enable: True
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
common_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: common_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -137,4 +137,10 @@ so-curator:
|
|||||||
# End Curator Cron Jobs
|
# End Curator Cron Jobs
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
curator_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: curator_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -10,6 +10,12 @@ installdocker:
|
|||||||
# Make sure Docker is running!
|
# Make sure Docker is running!
|
||||||
docker:
|
docker:
|
||||||
service.running:
|
service.running:
|
||||||
- enable: TrueA
|
- enable: True
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
docker_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: docker_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -56,4 +56,10 @@ so-domainstats:
|
|||||||
- binds:
|
- binds:
|
||||||
- /opt/so/log/domainstats:/var/log/domain_stats
|
- /opt/so/log/domainstats:/var/log/domain_stats
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
domainstats_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: domainstats_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -131,4 +131,10 @@ so-elastalert:
|
|||||||
- module: wait_for_elasticsearch
|
- module: wait_for_elasticsearch
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
elastalert_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: elastalert_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -244,4 +244,10 @@ so-elasticsearch-templates:
|
|||||||
- cwd: /opt/so
|
- cwd: /opt/so
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
elasticsearch_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: elasticsearch_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -75,4 +75,10 @@ so-filebeat:
|
|||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/filebeat/etc/filebeat.yml
|
- file: /opt/so/conf/filebeat/etc/filebeat.yml
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
filebeat_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: filebeat_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -134,4 +134,10 @@ iptables_drop_all_the_things:
|
|||||||
- jump: DROP
|
- jump: DROP
|
||||||
- save: True
|
- save: True
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
firewall_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: firewall_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -139,4 +139,10 @@ so-fleet:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
fleet_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: fleet_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -56,5 +56,11 @@ so-freq:
|
|||||||
- binds:
|
- binds:
|
||||||
- /opt/so/log/freq_server:/var/log/freq_server:rw
|
- /opt/so/log/freq_server:/var/log/freq_server:rw
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
freqserver_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: freqserver_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -237,4 +237,10 @@ so-grafana:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
grafana_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: grafana_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -29,4 +29,10 @@ healthcheck_schedule_{{ STATUS[1] }}:
|
|||||||
schedule.{{ STATUS[1] }}:
|
schedule.{{ STATUS[1] }}:
|
||||||
- name: healthcheck
|
- name: healthcheck
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
healthcheck_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: healthcheck_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -75,4 +75,10 @@ so-idstools:
|
|||||||
- watch:
|
- watch:
|
||||||
- file: idstoolsetcsync
|
- file: idstoolsetcsync
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
idstools_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: idstools_state_not_allowed
|
||||||
|
|
||||||
{% endif%}
|
{% endif%}
|
||||||
@@ -47,4 +47,10 @@ so-influxdb:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
influxdb_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: influxdb_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -121,4 +121,10 @@ so-kibana-config-load:
|
|||||||
# - source: salt://kibana/bin/keepkibanahappy.sh
|
# - source: salt://kibana/bin/keepkibanahappy.sh
|
||||||
# - template: jinja
|
# - template: jinja
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
kibana_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: kibana_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -201,4 +201,10 @@ so-logstash:
|
|||||||
- file: es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }}
|
- file: es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
logstash_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: logstash_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -82,4 +82,10 @@ so-aptcacherng:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
manager_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: manager_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -62,4 +62,10 @@ so-minio:
|
|||||||
- /etc/pki/minio.crt:/.minio/certs/public.crt:ro
|
- /etc/pki/minio.crt:/.minio/certs/public.crt:ro
|
||||||
- entrypoint: "/usr/bin/docker-entrypoint.sh server --certs-dir /.minio/certs --address :9595 /data"
|
- entrypoint: "/usr/bin/docker-entrypoint.sh server --certs-dir /.minio/certs --address :9595 /data"
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
minio_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: minio_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -9,4 +9,10 @@ so_motd:
|
|||||||
- source: salt://motd/files/so_motd.jinja
|
- source: salt://motd/files/so_motd.jinja
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
motd_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: motd_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -99,4 +99,10 @@ so-mysql:
|
|||||||
- docker_container: so-mysql
|
- docker_container: so-mysql
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
mysql_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: mysql_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -95,4 +95,10 @@ so-nginx:
|
|||||||
- file: nginxconf
|
- file: nginxconf
|
||||||
- file: nginxconfdir
|
- file: nginxconfdir
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
nginx_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: nginx_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -79,4 +79,10 @@ so-nodered-flows:
|
|||||||
- name: /usr/sbin/so-nodered-load-flows
|
- name: /usr/sbin/so-nodered-load-flows
|
||||||
- cwd: /
|
- cwd: /
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
nodered_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: nodered_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -166,4 +166,10 @@ so-sensoroni:
|
|||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/sensoroni/sensoroni.json
|
- file: /opt/so/conf/sensoroni/sensoroni.json
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
pcap_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: pcap_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -103,4 +103,10 @@ so-playbookruleupdatecron:
|
|||||||
- minute: '1'
|
- minute: '1'
|
||||||
- hour: '6'
|
- hour: '6'
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
playbook_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: playbook_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -70,4 +70,10 @@ so-redis:
|
|||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/redis/etc
|
- file: /opt/so/conf/redis/etc
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
redis_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: redis_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -57,4 +57,10 @@ so-dockerregistry:
|
|||||||
- /etc/pki/registry.crt:/etc/pki/registry.crt:ro
|
- /etc/pki/registry.crt:/etc/pki/registry.crt:ro
|
||||||
- /etc/pki/registry.key:/etc/pki/registry.key:ro
|
- /etc/pki/registry.key:/etc/pki/registry.key:ro
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
registry_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: registry_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -33,4 +33,10 @@ engines_config:
|
|||||||
- watch_in:
|
- watch_in:
|
||||||
- service: salt_minion_service
|
- service: salt_minion_service
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
salt_master_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: salt_master_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -104,4 +104,10 @@ so-kratos:
|
|||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/kratos
|
- file: /opt/so/conf/kratos
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
soc_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: soc_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -69,4 +69,10 @@ so-soctopus:
|
|||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- {{MANAGER_URL}}:{{MANAGER_IP}}
|
- {{MANAGER_URL}}:{{MANAGER_IP}}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
soctopus_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: soctopus_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -576,4 +576,10 @@ elastickeyperms:
|
|||||||
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
ssl_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: ssl_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -145,4 +145,10 @@ strelka_zeek_extracted_sync:
|
|||||||
- name: '[ -d /nsm/zeek/extracted/complete/ ] && mv /nsm/zeek/extracted/complete/* /nsm/strelka/ > /dev/null 2>&1'
|
- name: '[ -d /nsm/zeek/extracted/complete/ ] && mv /nsm/zeek/extracted/complete/* /nsm/strelka/ > /dev/null 2>&1'
|
||||||
- minute: '*'
|
- minute: '*'
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
strelka_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: strelka_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -178,4 +178,10 @@ surilogrotate:
|
|||||||
- month: '*'
|
- month: '*'
|
||||||
- dayweek: '*'
|
- dayweek: '*'
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
suricata_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: suricata_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -12,4 +12,10 @@ so-tcpreplay:
|
|||||||
- interactive: True
|
- interactive: True
|
||||||
- tty: True
|
- tty: True
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
tcpreplay_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: tcpreplay_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -73,4 +73,10 @@ so-telegraf:
|
|||||||
- file: tgrafconf
|
- file: tgrafconf
|
||||||
- file: tgrafsyncscripts
|
- file: tgrafsyncscripts
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
telegraf_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: telegraf_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -143,4 +143,10 @@ thehivescript:
|
|||||||
- template: jinja
|
- template: jinja
|
||||||
- hide_output: True
|
- hide_output: True
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
thehive_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: thehive_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -25,4 +25,10 @@ fixsearch:
|
|||||||
- template: jinja
|
- template: jinja
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
utility_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: utility_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -147,4 +147,10 @@ hidsruledir:
|
|||||||
file.symlink:
|
file.symlink:
|
||||||
- target: /nsm/wazuh/ruleset
|
- target: /nsm/wazuh/ruleset
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
wazuh_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: wazuh_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -10,4 +10,10 @@ yumconf:
|
|||||||
- mode: 644
|
- mode: 644
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
yum_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: yum_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -196,4 +196,10 @@ so-zeek:
|
|||||||
- file: /opt/so/conf/zeek/policy
|
- file: /opt/so/conf/zeek/policy
|
||||||
- file: /opt/so/conf/zeek/bpf
|
- file: /opt/so/conf/zeek/bpf
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
zeek_state_not_allowed:
|
||||||
|
test.fail_without_changes:
|
||||||
|
- name: zeek_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user