2017-05-16 16:26:23 -04:00
|
|
|
{% from "sssd/map.jinja" import sssd_settings as sssd with context %}
|
|
|
|
|
|
|
|
sssd_package:
|
|
|
|
pkg.{{ sssd.package_status }}:
|
|
|
|
- name: {{ sssd.package_name }}
|
|
|
|
|
2017-05-16 16:30:06 -04:00
|
|
|
{% if sssd.package_extras %}
|
|
|
|
sssd_package_extras:
|
|
|
|
pkg.installed:
|
|
|
|
- pkgs: {{ sssd.package_extras|json }}
|
|
|
|
{% endif %}
|
|
|
|
|
2017-05-21 13:38:38 -04:00
|
|
|
sssd_config:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ sssd.config_path }}
|
2017-05-21 13:46:33 -04:00
|
|
|
- template: jinja
|
|
|
|
- source: salt://sssd/files/sssd.conf
|
|
|
|
- mode: {{ sssd.config_mode }}
|
2017-05-21 13:38:38 -04:00
|
|
|
- require:
|
|
|
|
- pkg: sssd_package
|
|
|
|
|
|
|
|
sssd_service:
|
|
|
|
service.{{ sssd.service_status }}:
|
|
|
|
- name: {{ sssd.service_name }}
|
|
|
|
- require:
|
|
|
|
- file: sssd_config
|
|
|
|
|