Merge pull request #4972 from Security-Onion-Solutions/mkr2361

Fix Manager Search
This commit is contained in:
Mike Reeves authored and GitHub committed 2021-07-28 17:08:40 -04:00
commit 4b3db0c4d2
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
STENODOCKER
STENODOCKER MSEARCH
@@ -49,6 +49,16 @@ discovery.seed_hosts:
- {{ SN.split('_')|first }}
{%- endfor %}
{%- endif %}
{%- elif grains.role == 'so-managersearch' %}
{%- if salt['pillar.get']('nodestab', {}) %}
node.roles: [ master, data, remote_cluster_client ]
discovery.seed_hosts:
- {{ grains.master }}
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
- {{ SN.split('_')|first }}
{%- endfor %}
{%- endif %}
node.attr.box_type: {{ NODE_ROUTE_TYPE }}
{%- else %}
node.roles: {{ NODE_ROLES }}
node.attr.box_type: {{ NODE_ROUTE_TYPE }}