summaryrefslogtreecommitdiffstats
path: root/pillar
diff options
context:
space:
mode:
Diffstat (limited to 'pillar')
-rw-r--r--pillar/top.sls4
1 files changed, 2 insertions, 2 deletions
diff --git a/pillar/top.sls b/pillar/top.sls
index 37638b7..872dc8b 100644
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -1,5 +1,5 @@
-{% set roles = salt['grains.get']('roles', []) %}
-{% set id = salt['grains.get']('id') %}
+{%- set id = salt['grains.get']('id') -%}
+{%- set roles = salt['nbroles.get'](id) -%}
{{ saltenv }}:
'*':