Commit b57437b3 authored by Francesco Gionghi's avatar Francesco Gionghi
Browse files

fix reset for redhat

parent 23dc8e5b
sssd:
realm: PC.ITC.IT
login:
user: vasadmin
pass: vXXXo
ou: "--computer-ou=OU=ITC_Linux,DC=pc,DC=itc,DC=it"
opts:
- name: --client-software
value: sssd
- name: --automatic-id-mapping
value: "no"
- name: --server-software
value: active-directory
echo -n "vsd&%#\$ltreo" | realm join -U vasadmin PC.ITC.IT --computer-ou=OU=ITC_Linux,DC=pc,DC=itc,DC=it --client-software=sssd --membership-software=adcli --automatic-id-mapping=no
\ No newline at end of file
......@@ -11,3 +11,6 @@ sssd:
value: "no"
- name: --server-software
value: active-directory
echo -n "vsd&%#\$ltreo" | realm join -U vasadmin PC.ITC.IT --computer-ou=OU=ITC_Linux,DC=pc,DC=itc,DC=it --client-software=sssd --membership-software=adcli --automatic-id-mapping=no
\ No newline at end of file
[sssd]
domains = {{ realm|lower }}
config_file_version = 2
......
......@@ -3,7 +3,7 @@
post-command:
cmd.run:
- name: {{sssd.launch.command}}
- name: {{ sssd.launch.command }}
{% if sssd.launch.checkfile is defined %}}}
- unless: grep mkhomedir {{ sssd.launch.checkfile }}
{% endif %}
\ No newline at end of file
......@@ -24,13 +24,14 @@ stop-sssd:
service:
- name: sssd
- dead
{% if sssd.config.nsswitch is defined %}
nsswitch-reset:
cmd.run:
- name: sed -i {{ sssd.config.nsswitch[0].destination }} -e 's% sss%%g'
{% endif %}
{% if sssd.launch.commandreset is defined %}
rmhomedir-reset:
cmd.run:
- name: {{sssd.mkhomedir.commandreset}}
- name: {{sssd.launch.commandreset}}
{%endif %}
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