Add admins to redis group on masters
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Avoid permissions errors if Salt attempts to write to Redis during non-root state.apply calls. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
cce6cce594
commit
a5754ea0cb
@ -80,14 +80,6 @@ salt_master_extra_packages:
|
||||
- require:
|
||||
- pkg: redis
|
||||
|
||||
salt_redis_membership:
|
||||
group.present:
|
||||
- name: redis
|
||||
- addusers:
|
||||
- {{ master_pillar['user'] }}
|
||||
- require:
|
||||
- pkg: redis
|
||||
|
||||
salt_redis_service_enable:
|
||||
service.enabled:
|
||||
- name: {{ redis_service }}
|
||||
@ -102,14 +94,25 @@ salt_redis_service_start:
|
||||
- watch:
|
||||
- file: {{ redis_config }}
|
||||
|
||||
salt_redis_membership:
|
||||
group.present:
|
||||
- name: redis
|
||||
- require:
|
||||
- pkg: redis
|
||||
- addusers:
|
||||
- {{ master_pillar['user'] }}
|
||||
{%- if pillar['secret_salt'] is defined %}
|
||||
{%- for user in master_pillar['publisher_acl'] %}
|
||||
- {{ user }}
|
||||
{%- endfor %}
|
||||
|
||||
admin_salt_membership:
|
||||
group.present:
|
||||
- name: salt
|
||||
- require:
|
||||
- pkg: salt-master
|
||||
- addusers:
|
||||
{%- for user in master_pillar['publisher_acl'] %}
|
||||
- {{ user }}
|
||||
{%- endfor %}
|
||||
- require:
|
||||
- pkg: salt-master
|
||||
{%- endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user