diff options
Diffstat (limited to 'pillar')
-rw-r--r-- | pillar/top.sls | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pillar/top.sls b/pillar/top.sls index 3302bd8..13efc78 100644 --- a/pillar/top.sls +++ b/pillar/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 }}: '*': @@ -7,6 +7,6 @@ '{{ id }}': - ignore_missing: True - id.{{ id.replace('.', '_') }} - {% for role in roles %} + {%- for role in roles %} - role.{{ role }} {%- endfor %} |