summaryrefslogtreecommitdiffstats
path: root/salt
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-15 09:18:15 +0100
committerGeorg Pfuetzenreuter2023-01-15 09:18:15 +0100
commitf1a4b0514c148d9b5477f5c2b11938445e4438b1 (patch)
tree003745428e583f6d3287f0259040dc1358503505 /salt
downloadsalt-f1a4b0514c148d9b5477f5c2b11938445e4438b1.tar.gz
salt-f1a4b0514c148d9b5477f5c2b11938445e4438b1.tar.bz2
salt-f1a4b0514c148d9b5477f5c2b11938445e4438b1.zip
Init
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt')
-rw-r--r--salt/top.sls11
1 files changed, 11 insertions, 0 deletions
diff --git a/salt/top.sls b/salt/top.sls
new file mode 100644
index 0000000..de9b24b
--- /dev/null
+++ b/salt/top.sls
@@ -0,0 +1,11 @@
+{% set client_id = salt['grains.get']('id') %}
+{% set roles = salt['grains.get']('roles', []) %}
+
+{{ saltenv }}:
+ '*':
+ - baseline
+ {% for role in roles %}
+ 'roles:{{ role }}':
+ - match: grain
+ - role.{{ role }}
+ {% endfor %}