diff options
Diffstat (limited to 'pillar/top.sls')
-rw-r--r-- | pillar/top.sls | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pillar/top.sls b/pillar/top.sls new file mode 100644 index 0000000..36794ea --- /dev/null +++ b/pillar/top.sls @@ -0,0 +1,13 @@ +{% set roles = salt['grains.get']('roles', []) %} +{% set id = salt['grains.get']('id') %} + +{{ saltenv }}: + '*': + - common + {% for role in roles %} + 'roles:{{ role }}': + - match: grain + - role.{{ role }} + {%- endfor %} + '{{ id }}': + - id.{{ id.replace('.', '_') }} |