diff options
Diffstat (limited to 'salt')
-rw-r--r-- | salt/top.sls | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/salt/top.sls b/salt/top.sls index 632d4a2..6b92f79 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -1,5 +1,5 @@ {%- set id = salt['grains.get']('id') -%} -{%- set roles = salt['nbroles.get'](id) -%} +{%- set roles = salt['http.query']('http://127.0.0.1:5000/roles', decode=True, decode_type='json', params={"machine": id})['dict']['roles'] -%} {{ saltenv }}: '*': |