diff options
author | Georg Pfuetzenreuter | 2023-01-21 14:20:08 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-01-21 14:26:31 +0100 |
commit | 12f0a7bce0b2ed747a0a3e5e6df1d8e7104b8b33 (patch) | |
tree | 9a7053856c086f4e9e3496b219a2a8632339c728 /salt/top.sls | |
parent | 91fd60c5a3124184352ad47aa33679cd9c7cbb6d (diff) | |
download | salt-12f0a7bce0b2ed747a0a3e5e6df1d8e7104b8b33.tar.gz salt-12f0a7bce0b2ed747a0a3e5e6df1d8e7104b8b33.tar.bz2 salt-12f0a7bce0b2ed747a0a3e5e6df1d8e7104b8b33.zip |
Target roles without grains in tops
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt/top.sls')
-rw-r--r-- | salt/top.sls | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/salt/top.sls b/salt/top.sls index a534cc5..632d4a2 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -4,8 +4,9 @@ {{ saltenv }}: '*': - common + {%- if roles | length > 0 %} + '{{ id }}': {% for role in roles %} - 'roles:{{ role }}': - - match: grain - role.{{ role }} - {% endfor %} + {%- endfor %} + {%- endif %} |