Added some SSSD configuration stuff
This commit is contained in:
parent
675cff69fe
commit
8d2224141f
16
sssd/files/sssd.conf
Normal file
16
sssd/files/sssd.conf
Normal file
@ -0,0 +1,16 @@
|
||||
{% from "sssd/map.jinja" import sssd with context %}
|
||||
|
||||
# Managed by Salt
|
||||
|
||||
{%- for key, value in sssd.items() -%}
|
||||
{%- if value is mapping -%}
|
||||
[{{ key }}]
|
||||
{%- for key2, value2 -%}
|
||||
{{ key2 }} = {{ value2 }}
|
||||
{%- endfor -%}
|
||||
{%- else -%}
|
||||
[{{ key }}]
|
||||
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
@ -10,3 +10,15 @@ sssd_package_extras:
|
||||
- pkgs: {{ sssd.package_extras|json }}
|
||||
{% endif %}
|
||||
|
||||
sssd_config:
|
||||
file.managed:
|
||||
- name: {{ sssd.config_path }}
|
||||
- require:
|
||||
- pkg: sssd_package
|
||||
|
||||
sssd_service:
|
||||
service.{{ sssd.service_status }}:
|
||||
- name: {{ sssd.service_name }}
|
||||
- require:
|
||||
- file: sssd_config
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user