Merge pull request #9865 from Security-Onion-Solutions/2.4/fleet-esoutput

Move Output to ES
This commit is contained in:
Josh Brower
2023-02-28 15:20:46 -05:00
committed by GitHub
4 changed files with 17 additions and 1 deletions

View File

@@ -84,6 +84,11 @@ printf '%s\n'\
" url: '{{ GLOBALS.manager_ip }}'"\
"" >> "$pillar_file"
#Store Grid Nodes Enrollment token in Global pillar
global_pillar_file=/opt/so/saltstack/local/pillar/soc_global.sls
printf '%s\n'\
" fleet_grid_enrollment_token: '$GRIDNODESENROLLMENTOKEN'"\
"" >> "$global_pillar_file"
# Call Elastic-Fleet Salt State
salt-call state.apply elastic-fleet queue=True

View File

@@ -2,7 +2,7 @@
# or more contributor license agreements. Licensed under the Elastic License 2.0; you may not use
# this file except in compliance with the Elastic License 2.0.
{%- set GRIDNODETOKEN = salt['pillar.get']('elasticfleet:server:grid_enrollment') -%}
{%- set GRIDNODETOKEN = salt['pillar.get']('global:fleet_grid_enrollment_token') -%}
{% set AGENT_STATUS = salt['service.available']('elastic-agent') %}
{% if not AGENT_STATUS %}

View File

@@ -32,6 +32,7 @@ firewall:
elastic_agent_data:
tcp:
- 5055
- 9200
endgame:
tcp:
- 3765

View File

@@ -63,6 +63,7 @@ base:
{%- endif %}
- schedule
- docker_clean
- elastic-fleet.install_agent_grid
'*_eval and G@saltversion:{{saltversion}}':
- match: compound
@@ -109,6 +110,7 @@ base:
- playbook
- redis
{%- endif %}
- elastic-fleet.install_agent_grid
- docker_clean
'*_manager and G@saltversion:{{saltversion}}':
@@ -150,6 +152,7 @@ base:
- schedule
- soctopus
- playbook
- elastic-fleet.install_agent_grid
- docker_clean
'*_standalone and G@saltversion:{{saltversion}}':
@@ -202,6 +205,7 @@ base:
- playbook
- docker_clean
- elastic-fleet
- elastic-fleet.install_agent_grid
'*_searchnode and G@saltversion:{{saltversion}}':
- match: compound
@@ -217,6 +221,7 @@ base:
- logstash
{%- endif %}
- schedule
- elastic-fleet.install_agent_grid
- docker_clean
'*_managersearch and G@saltversion:{{saltversion}}':
@@ -258,6 +263,7 @@ base:
- schedule
- soctopus
- playbook
- elastic-fleet.install_agent_grid
- docker_clean
'*_heavynode and G@saltversion:{{saltversion}}':
@@ -286,6 +292,7 @@ base:
- zeek
{%- endif %}
- schedule
- elastic-fleet.install_agent_grid
- docker_clean
'*_import and G@saltversion:{{saltversion}}':
@@ -317,6 +324,7 @@ base:
- zeek
- schedule
- docker_clean
- elastic-fleet.install_agent_grid
- elastic-fleet
'*_receiver and G@saltversion:{{saltversion}}':
@@ -332,6 +340,7 @@ base:
- redis
{%- endif %}
- schedule
- elastic-fleet.install_agent_grid
- docker_clean
'*_idh and G@saltversion:{{saltversion}}':
@@ -341,6 +350,7 @@ base:
- telegraf
- firewall
- schedule
- elastic-fleet.install_agent_grid
- docker_clean
- idh