Added some SSSD configuration stuff

This commit is contained in:
Gregory Ballantine 2017-05-21 13:38:38 -04:00
parent 675cff69fe
commit 8d2224141f
2 changed files with 28 additions and 0 deletions

16
sssd/files/sssd.conf Normal file
View 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 -%}

View File

@ -10,3 +10,15 @@ sssd_package_extras:
- pkgs: {{ sssd.package_extras|json }} - pkgs: {{ sssd.package_extras|json }}
{% endif %} {% 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