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