summaryrefslogtreecommitdiffstats
path: root/pillar/top.sls
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-21 14:20:08 +0100
committerGeorg Pfuetzenreuter2023-01-21 14:26:31 +0100
commit12f0a7bce0b2ed747a0a3e5e6df1d8e7104b8b33 (patch)
tree9a7053856c086f4e9e3496b219a2a8632339c728 /pillar/top.sls
parent91fd60c5a3124184352ad47aa33679cd9c7cbb6d (diff)
downloadsalt-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 'pillar/top.sls')
-rw-r--r--pillar/top.sls8
1 files changed, 3 insertions, 5 deletions
diff --git a/pillar/top.sls b/pillar/top.sls
index 872dc8b..3302bd8 100644
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -4,11 +4,9 @@
{{ saltenv }}:
'*':
- common
- {% for role in roles %}
- 'roles:{{ role }}':
- - match: grain
- - role.{{ role }}
- {%- endfor %}
'{{ id }}':
- ignore_missing: True
- id.{{ id.replace('.', '_') }}
+ {% for role in roles %}
+ - role.{{ role }}
+ {%- endfor %}