Adjust minion PKI permissions
Needed for non-root Syndic operation. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
2a7a9decee
commit
1c0551755f
@ -220,14 +220,16 @@ salt-minion-pki-dir:
|
|||||||
- name: {{ salt_settings.config_path | path_join('pki', 'minion') }}
|
- name: {{ salt_settings.config_path | path_join('pki', 'minion') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- user: {{ salt_settings.rootuser }}
|
- user: {{ salt_settings.rootuser }}
|
||||||
- group:
|
- group: salt
|
||||||
|
{#
|
||||||
{%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %}
|
{%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %}
|
||||||
wheel
|
wheel
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{{ salt_settings.rootgroup }}
|
{{ salt_settings.rootgroup }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
#}
|
||||||
{%- if grains['kernel'] != 'Windows' %}
|
{%- if grains['kernel'] != 'Windows' %}
|
||||||
- mode: 700
|
- mode: 750
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|
||||||
@ -239,14 +241,16 @@ permissions-minion.pem:
|
|||||||
- name: {{ salt_settings.config_path | path_join('pki', 'minion', 'minion.pem') }}
|
- name: {{ salt_settings.config_path | path_join('pki', 'minion', 'minion.pem') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- user: {{ salt_settings.rootuser }}
|
- user: {{ salt_settings.rootuser }}
|
||||||
- group:
|
- group: salt
|
||||||
|
{#
|
||||||
{%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %}
|
{%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %}
|
||||||
wheel
|
wheel
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{{ salt_settings.rootgroup }}
|
{{ salt_settings.rootgroup }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
#}
|
||||||
{%- if grains['kernel'] != 'Windows' %}
|
{%- if grains['kernel'] != 'Windows' %}
|
||||||
- mode: 400
|
- mode: 440
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- replace: False
|
- replace: False
|
||||||
- require:
|
- require:
|
||||||
|
Loading…
Reference in New Issue
Block a user