Salt Top - New pillar match

This commit is contained in:
Mike Reeves
2018-05-22 13:54:23 -04:00
parent 1f5154c6b8
commit bde2582f02

View File

@@ -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