Commit 615c0479 authored by Francesco Gionghi's avatar Francesco Gionghi
Browse files

fix mkhomedir

parent 9899eb3f
include:
- .join
\ No newline at end of file
- .join
- .mkhomedir
\ No newline at end of file
......@@ -4,4 +4,4 @@
realm-join:
cmd.run:
- name: echo -n "{{ pillar['sssd']['login']['pass']}}" | {{ sssd.command }} join -U {{ pillar['sssd']['login']['user']}} {{pillar['sssd']['realm']}} {{pillar['sssd']['ou']}} {% for opt in pillar['sssd']['opts'] %} {{opt.name}}={{opt.value}} {% endfor %}
- creates: /etc/sssd/sssd.conf
\ No newline at end of file
- creates: /etc/sssd/sssd.conf
{%- set sssdroot = slspath.split('/')[0] %}
{%- from sssdroot ~ "/map.jinja" import sssd with context %}
pam-mkhomedir:
cmd.run:
- name: export DEBIAN_FRONTEND=noninteractive;/usr/sbin/pam-auth-update --package --enable mkhomedir
\ No newline at end of file
......@@ -29,4 +29,8 @@ nsswitch-reset:
cmd.run:
- name: sed -i {{ sssd.config.nsswitch[0].destination }} -e 's% sss%%g'
rmhomedir-reset:
cmd.run:
- name: export DEBIAN_FRONTEND=noninteractive;/usr/sbin/pam-auth-update --remove mkhomedir
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