From bde2582f02618c9c9a73bbf40a3051744cabc7fd Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 22 May 2018 13:54:23 -0400 Subject: [PATCH] Salt Top - New pillar match --- salt/top.sls | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/salt/top.sls b/salt/top.sls index 343c7fb2f..3c2da205f 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -1,5 +1,3 @@ -{% set nodetype = salt['pillar_get']('node:node_type', 'storage') %} - base: 'G@role:so-sensor': - common @@ -22,22 +20,29 @@ base: - elasticsearch - logstash - 'G@role:so-node': - {%- if nodetype == 'parser' %} + # Storage node logic + + 'node_type:parser': + - match: pillar - common - logstash - {% elif nodetype == 'hot' %} + + 'node_type:hot': + - match: pillar - common - logstash - elasticsearch - {% elif nodetype == 'warm' %} + + 'node_type:warm': + - match: pillar - common - elasticsearch - {% elif nodetype == 'storage' %} + + 'node_type:storage': + - match: pillar - common - logstash - elasticsearch - {% endif %} 'G@role:mastersensor': - common