summaryrefslogtreecommitdiffstats
path: root/pillar/top.sls
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-21 01:00:22 +0100
committerGeorg Pfuetzenreuter2023-01-21 01:22:29 +0100
commitbf0dfeb9411a7b7c4b5d3fb0ded70d6943ba82ae (patch)
treeae3d8c4b350d6e504f063a372a711e7276d12d1c /pillar/top.sls
parent2181a4999f6f0083e65025470f216ba3cd0ef49f (diff)
downloadsalt-bf0dfeb9411a7b7c4b5d3fb0ded70d6943ba82ae.tar.gz
salt-bf0dfeb9411a7b7c4b5d3fb0ded70d6943ba82ae.tar.bz2
salt-bf0dfeb9411a7b7c4b5d3fb0ded70d6943ba82ae.zip
Use nbroles instead of grains
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'pillar/top.sls')
-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 }}:
'*':