diff options
author | Georg Pfuetzenreuter | 2023-01-21 01:00:22 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-01-21 01:22:29 +0100 |
commit | bf0dfeb9411a7b7c4b5d3fb0ded70d6943ba82ae (patch) | |
tree | ae3d8c4b350d6e504f063a372a711e7276d12d1c /salt/top.sls | |
parent | 2181a4999f6f0083e65025470f216ba3cd0ef49f (diff) | |
download | salt-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 'salt/top.sls')
-rw-r--r-- | salt/top.sls | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/salt/top.sls b/salt/top.sls index d937aad..a534cc5 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -1,5 +1,5 @@ -{% set client_id = salt['grains.get']('id') %} -{% set roles = salt['grains.get']('roles', []) %} +{%- set id = salt['grains.get']('id') -%} +{%- set roles = salt['nbroles.get'](id) -%} {{ saltenv }}: '*': |