From 21b1becd7e0b7b39fc2643133970958f601d6268 Mon Sep 17 00:00:00 2001 From: Doug Burks Date: Mon, 12 Oct 2020 16:34:30 -0400 Subject: [PATCH] Update so-elasticsearch-pipelines-list --- salt/common/tools/sbin/so-elasticsearch-pipelines-list | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/salt/common/tools/sbin/so-elasticsearch-pipelines-list b/salt/common/tools/sbin/so-elasticsearch-pipelines-list index eaf21ad15..58dbf9c9b 100755 --- a/salt/common/tools/sbin/so-elasticsearch-pipelines-list +++ b/salt/common/tools/sbin/so-elasticsearch-pipelines-list @@ -17,7 +17,15 @@ {%- set NODEIP = salt['pillar.get']('elasticsearch:mainip', '') -%} . /usr/sbin/so-common if [ "$1" == "" ]; then + {% if grains['role'] in ['so-node','so-heavynode'] %} + curl -s -k https://{{ NODEIP }}:9200/_ingest/pipeline/* | jq 'keys' + {% else %} curl -s {{ NODEIP }}:9200/_ingest/pipeline/* | jq 'keys' + {% endif %} else + {% if grains['role'] in ['so-node','so-heavynode'] %} + curl -s -k https://{{ NODEIP }}:9200/_ingest/pipeline/$1 | jq + {% else %} curl -s {{ NODEIP }}:9200/_ingest/pipeline/$1 | jq + {% endif %} fi