From 6625e17bf2673b9e4f42ac7607b58e217a6065e9 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 9 Apr 2020 12:22:27 -0400 Subject: [PATCH] Have templates applied on the master only --- salt/elasticsearch/init.sls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/elasticsearch/init.sls b/salt/elasticsearch/init.sls index 47fd6a0a6..11284c830 100644 --- a/salt/elasticsearch/init.sls +++ b/salt/elasticsearch/init.sls @@ -145,7 +145,9 @@ so-elasticsearch-pipelines: cmd.run: - name: /opt/so/conf/elasticsearch/so-elasticsearch-pipelines {{ esclustername }} +{% if grains['role'] == 'so-master' or grains['role'] == "so-eval" or grains['role'] == "so-mastersearch" %} so-elasticsearch-templates: cmd.run: - name: /usr/sbin/so-elasticsearch-templates - - cwd: /opt/so \ No newline at end of file + - cwd: /opt/so +{% endif %} \ No newline at end of file