From 4c43262610964966b097d79a2e1c4fe5bc78635f Mon Sep 17 00:00:00 2001 From: Doug Burks Date: Mon, 12 Oct 2020 16:08:06 -0400 Subject: [PATCH] Update so-elasticsearch-templates-list --- salt/common/tools/sbin/so-elasticsearch-templates-list | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-elasticsearch-templates-list b/salt/common/tools/sbin/so-elasticsearch-templates-list index d4d080938..85ef27760 100755 --- a/salt/common/tools/sbin/so-elasticsearch-templates-list +++ b/salt/common/tools/sbin/so-elasticsearch-templates-list @@ -18,10 +18,14 @@ . /usr/sbin/so-common if [ "$1" == "" ]; then {% if grains['role'] in ['so-node','so-heavynode'] %} - curl -s -k kttps://{{ NODEIP }}:9200/_template/* | jq 'keys' + curl -s -k https://{{ NODEIP }}:9200/_template/* | jq 'keys' {% else %} curl -s {{ NODEIP }}:9200/_template/* | jq 'keys' {% endif %} else + {% if grains['role'] in ['so-node','so-heavynode'] %} + curl -s -k https://{{ NODEIP }}:9200/_template/$1 | jq + {% else %} curl -s {{ NODEIP }}:9200/_template/$1 | jq + {% endif %} fi