salt.master: configure publisher_acl
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
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:
parent
4f633d8d4e
commit
5668bcc4e4
@ -60,3 +60,4 @@ salt:
|
|||||||
syndic_user: ${'secret_salt:master:syndic_user'}
|
syndic_user: ${'secret_salt:master:syndic_user'}
|
||||||
cache.redis.unix_socket_path: ${'secret_salt:master:cache.redis.unix_socket_path'}
|
cache.redis.unix_socket_path: ${'secret_salt:master:cache.redis.unix_socket_path'}
|
||||||
cache.redis.password: ${'secret_salt:master:cache.redis.password'}
|
cache.redis.password: ${'secret_salt:master:cache.redis.password'}
|
||||||
|
publisher_acl: ${'secret_salt:master:publisher_acl'}
|
||||||
|
|||||||
@ -101,3 +101,15 @@ salt_redis_service_start:
|
|||||||
- pkg: redis
|
- pkg: redis
|
||||||
- watch:
|
- watch:
|
||||||
- file: {{ redis_config }}
|
- file: {{ redis_config }}
|
||||||
|
|
||||||
|
{%- if pillar['secret_salt'] is defined %}
|
||||||
|
admin_salt_membership:
|
||||||
|
group.present:
|
||||||
|
- name: salt
|
||||||
|
- addusers:
|
||||||
|
{%- for user in pillar['secret_salt']['master']['publisher_acl'] %}
|
||||||
|
- {{ user }}
|
||||||
|
{%- endfor %}
|
||||||
|
- require:
|
||||||
|
- pkg: salt-master
|
||||||
|
{%- endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user