This commit is contained in:
m0duspwnens
2020-01-21 16:39:42 -05:00
parent 0c08f8e727
commit a39edad3f6
113 changed files with 5613 additions and 72 deletions

View File

@@ -31,6 +31,8 @@ echo "Applying cross cluster search config..."
# Add all the search nodes to cross cluster searching.
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
{%- if salt['pillar.get']('nodestab', {}) %}
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
curl -XPUT http://{{ ES }}:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"{{ SN }}": {"skip_unavailable": "true", "seeds": ["{{ SNDATA.ip }}:9300"]}}}}}'
{%- endfor %}
{%- endfor %}
{%- endif %}

View File

@@ -1,6 +1,5 @@
# This state is for checking things
{% if grains['role'] == 'so-master' %}
{% if salt['pillar.get']('nodestab','') %}
{% if grains['role'] == 'so-master' or grains['role'] == 'so-mastersearch' %}
# Make sure Cross Cluster is good. Will need some logic once we have hot/warm
crossclusterson:
cmd.script:
@@ -10,7 +9,6 @@ crossclusterson:
- source: salt://utility/bin/crossthestreams.sh
- template: jinja
{% endif %}
{% endif %}
{% if grains['role'] == 'so-eval' %}
fixsearch: