Commit 23dc8e5b authored by Francesco Gionghi's avatar Francesco Gionghi
Browse files

if vars defined for redhat

parent 4bc4db2c
......@@ -14,7 +14,7 @@
- mode: 0644
{%- endfor %}
{% if sssd.config.nsswitch is defined %}
{%- for file in sssd.config.nsswitch %}
{{ file.destination }}:
file.managed:
......@@ -26,3 +26,4 @@
- group: root
- mode: 0644
{%- endfor %}
{% endif %}
\ No newline at end of file
......@@ -4,4 +4,6 @@
post-command:
cmd.run:
- name: {{sssd.launch.command}}
- unless: grep mkhomedir {{ sssd.launch.checkfile }}
\ No newline at end of file
{% if sssd.launch.checkfile is defined %}}}
- unless: grep mkhomedir {{ sssd.launch.checkfile }}
{% endif %}
\ No newline at end of file
......@@ -45,8 +45,6 @@ RedHat:
krb:
- source: salt://{{ slspath }}/files/krb5.conf.redhat
destination: /etc/krb5.conf
nsswitch:
#nsswitch:
# - source: salt://{{ slspath }}/files/nsswitch.conf
# destination: /etc/nsswitch.conf
......@@ -59,7 +57,6 @@ RedHat:
# command: export DEBIAN_FRONTEND=noninteractive;/usr/sbin/pam-auth-update --package --enable mkhomedir
# commandreset: export DEBIAN_FRONTEND=noninteractive;/usr/sbin/pam-auth-update --remove mkhomedir
launch:
checkfile:
command: /usr/sbin/authconfig --update --enablesssd --enablesssdauth
Fedora: {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment