summaryrefslogtreecommitdiffstats
path: root/salt/profile/salt/master.sls
diff options
context:
space:
mode:
Diffstat (limited to 'salt/profile/salt/master.sls')
-rw-r--r--salt/profile/salt/master.sls12
1 files changed, 12 insertions, 0 deletions
diff --git a/salt/profile/salt/master.sls b/salt/profile/salt/master.sls
index a1ef840..ae2aee4 100644
--- a/salt/profile/salt/master.sls
+++ b/salt/profile/salt/master.sls
@@ -101,3 +101,15 @@ salt_redis_service_start:
- pkg: redis
- watch:
- file: {{ redis_config }}
+
+{%- if pillar['secret_salt'] is defined %}
+admin_salt_membership:
+ group.present:
+ - name: salt
+ - addusers:
+ {%- for user in master_pillar['publisher_acl'] %}
+ - {{ user }}
+ {%- endfor %}
+ - require:
+ - pkg: salt-master
+{%- endif %}