salt.master: configure publisher_acl
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-22 15:33:30 +01:00
parent 4f633d8d4e
commit 06a36e62ae
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -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 %}