Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
fbk-formulas
sssd
Commits
b57437b3
Commit
b57437b3
authored
May 05, 2022
by
Francesco Gionghi
Browse files
fix reset for redhat
parent
23dc8e5b
Changes
5
Hide whitespace changes
Inline
Side-by-side
pillar copy.example
0 → 100644
View file @
b57437b3
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
pillar.example
View file @
b57437b3
...
...
@@ -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/config-sssd/files/sssd.conf.redhat
View file @
b57437b3
[sssd]
domains = {{ realm|lower }}
config_file_version = 2
...
...
sssd/join/post-command.sls
View file @
b57437b3
...
...
@@ -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
sssd/reset.sls
View file @
b57437b3
...
...
@@ -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 %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment