only managers need node_ips

This commit is contained in:
Josh Patterson
2025-03-25 10:17:43 -04:00
parent d7e831fbeb
commit 79388af645
2 changed files with 84 additions and 80 deletions

View File

@@ -24,10 +24,10 @@ base:
- firewall.adv_firewall - firewall.adv_firewall
- nginx.soc_nginx - nginx.soc_nginx
- nginx.adv_nginx - nginx.adv_nginx
- node_data.ips
'*_manager or *_managersearch': '*_manager or *_managersearch':
- match: compound - match: compound
- node_data.ips
{% if salt['file.file_exists']('/opt/so/saltstack/local/pillar/elasticsearch/auth.sls') %} {% if salt['file.file_exists']('/opt/so/saltstack/local/pillar/elasticsearch/auth.sls') %}
- elasticsearch.auth - elasticsearch.auth
{% endif %} {% endif %}
@@ -90,6 +90,7 @@ base:
- soc.license - soc.license
'*_eval': '*_eval':
- node_data.ips
- secrets - secrets
- healthcheck.eval - healthcheck.eval
- elasticsearch.index_templates - elasticsearch.index_templates
@@ -138,6 +139,7 @@ base:
- minions.adv_{{ grains.id }} - minions.adv_{{ grains.id }}
'*_standalone': '*_standalone':
- node_data.ips
- logstash.nodes - logstash.nodes
- logstash.soc_logstash - logstash.soc_logstash
- logstash.adv_logstash - logstash.adv_logstash
@@ -260,6 +262,7 @@ base:
- soc.license - soc.license
'*_import': '*_import':
- node_data.ips
- secrets - secrets
- elasticsearch.index_templates - elasticsearch.index_templates
{% if salt['file.file_exists']('/opt/so/saltstack/local/pillar/elasticsearch/auth.sls') %} {% if salt['file.file_exists']('/opt/so/saltstack/local/pillar/elasticsearch/auth.sls') %}
@@ -305,6 +308,7 @@ base:
- minions.adv_{{ grains.id }} - minions.adv_{{ grains.id }}
'*_fleet': '*_fleet':
- node_data.ips
- backup.soc_backup - backup.soc_backup
- backup.adv_backup - backup.adv_backup
- logstash.nodes - logstash.nodes

View File

@@ -22,11 +22,7 @@ base:
- salt.minion-state-apply-test - salt.minion-state-apply-test
- salt.minion - salt.minion
'*_eval or *_manager* or *_standalone or *_import and I@node_data:False': '* and G@saltversion:{{saltversion}}':
- match: compound
- mine.update
'* and G@saltversion:{{saltversion}} and not I@node_data:False':
- match: compound - match: compound
- salt.minion - salt.minion
- patch.os.schedule - patch.os.schedule
@@ -37,21 +33,9 @@ base:
- docker - docker
- docker_clean - docker_clean
'*_sensor and G@saltversion:{{saltversion}} and not I@node_data:False': '*_manager* or *_standalone or *_eval or *_import and I@node_data:False':
- match: compound - match: compound
- sensor - mine.update
- ssl
- sensoroni
- telegraf
- firewall
- nginx
- pcap
- suricata
- healthcheck
- zeek
- strelka
- elasticfleet.install_agent_grid
- stig
'*_eval and G@saltversion:{{saltversion}} and not I@node_data:False': '*_eval and G@saltversion:{{saltversion}} and not I@node_data:False':
- match: compound - match: compound
@@ -85,37 +69,6 @@ base:
- utility - utility
- elasticfleet - elasticfleet
'*_manager and G@saltversion:{{saltversion}} and not I@node_data:False':
- match: compound
- salt.master
- ca
- ssl
- registry
- nginx
- influxdb
- strelka.manager
- soc
- kratos
- hydra
- firewall
- manager
- sensoroni
- telegraf
- backup.config_backup
- idstools
- suricata.manager
- elasticsearch
- logstash
- redis
- elastic-fleet-package-registry
- kibana
- curator.disabled
- elastalert
- utility
- elasticfleet
- stig
- kafka
'*_standalone and G@saltversion:{{saltversion}} and not I@node_data:False': '*_standalone and G@saltversion:{{saltversion}} and not I@node_data:False':
- match: compound - match: compound
- salt.master - salt.master
@@ -152,16 +105,34 @@ base:
- stig - stig
- kafka - kafka
'*_searchnode and G@saltversion:{{saltversion}} and not I@node_data:False': '*_manager and G@saltversion:{{saltversion}} and not I@node_data:False':
- match: compound - match: compound
- firewall - salt.master
- ca
- ssl - ssl
- elasticsearch - registry
- logstash - nginx
- influxdb
- strelka.manager
- soc
- kratos
- hydra
- firewall
- manager
- sensoroni - sensoroni
- telegraf - telegraf
- nginx - backup.config_backup
- elasticfleet.install_agent_grid - idstools
- suricata.manager
- elasticsearch
- logstash
- redis
- elastic-fleet-package-registry
- kibana
- curator.disabled
- elastalert
- utility
- elasticfleet
- stig - stig
- kafka - kafka
@@ -196,25 +167,6 @@ base:
- stig - stig
- kafka - kafka
'*_heavynode and G@saltversion:{{saltversion}} and not I@node_data:False':
- match: compound
- sensor
- ssl
- sensoroni
- telegraf
- nginx
- firewall
- elasticsearch
- logstash
- redis
- curator.disabled
- strelka
- pcap
- suricata
- zeek
- elasticfleet.install_agent_grid
- elasticagent
'*_import and G@saltversion:{{saltversion}} and not I@node_data:False': '*_import and G@saltversion:{{saltversion}} and not I@node_data:False':
- match: compound - match: compound
- salt.master - salt.master
@@ -243,7 +195,55 @@ base:
- zeek - zeek
- elasticfleet - elasticfleet
'*_receiver and G@saltversion:{{saltversion}} and not I@node_data:False': '*_searchnode and G@saltversion:{{saltversion}}':
- match: compound
- firewall
- ssl
- elasticsearch
- logstash
- sensoroni
- telegraf
- nginx
- elasticfleet.install_agent_grid
- stig
- kafka
'*_sensor and G@saltversion:{{saltversion}}':
- match: compound
- sensor
- ssl
- sensoroni
- telegraf
- firewall
- nginx
- pcap
- suricata
- healthcheck
- zeek
- strelka
- elasticfleet.install_agent_grid
- stig
'*_heavynode and G@saltversion:{{saltversion}}':
- match: compound
- sensor
- ssl
- sensoroni
- telegraf
- nginx
- firewall
- elasticsearch
- logstash
- redis
- curator.disabled
- strelka
- pcap
- suricata
- zeek
- elasticfleet.install_agent_grid
- elasticagent
'*_receiver and G@saltversion:{{saltversion}}':
- match: compound - match: compound
- ssl - ssl
- sensoroni - sensoroni
@@ -255,7 +255,7 @@ base:
- kafka - kafka
- stig - stig
'*_idh and G@saltversion:{{saltversion}} and not I@node_data:False': '*_idh and G@saltversion:{{saltversion}}':
- match: compound - match: compound
- ssl - ssl
- sensoroni - sensoroni
@@ -264,7 +264,7 @@ base:
- elasticfleet.install_agent_grid - elasticfleet.install_agent_grid
- idh - idh
'*_fleet and G@saltversion:{{saltversion}} and not I@node_data:False': '*_fleet and G@saltversion:{{saltversion}}':
- match: compound - match: compound
- ssl - ssl
- sensoroni - sensoroni
@@ -276,7 +276,7 @@ base:
- elasticfleet.install_agent_grid - elasticfleet.install_agent_grid
- schedule - schedule
'*_desktop and G@saltversion:{{saltversion}} and not I@node_data:False': '*_desktop and G@saltversion:{{saltversion}}':
- ssl - ssl
- sensoroni - sensoroni
- telegraf - telegraf