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

Fix Manager Search
This commit is contained in:
Mike Reeves
2021-07-28 17:08:40 -04:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

2
HOTFIX
View File

@@ -1 +1 @@
STENODOCKER
STENODOCKER MSEARCH

View File

@@ -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 }}