Add mkhomedir option to ipa-client-install
To allow PAM to create home directory for user who do not have one, ipa-client-install need an option. This is added by MakeHomeDir variable. This commit includes a fix from ykarel to fix the new variable type. Related-bug: #1823727 Change-Id: I040014482e9126947b8c4a1d7b1bf7645f926c4b Signed-off-by: Cyril Lopez <cylopez@redhat.com> (cherry-picked from commit2471642f6f
ande3ad34aece
)
This commit is contained in:
parent
dd200499de
commit
aa6dc4cbc4
@ -36,6 +36,10 @@ parameters:
|
||||
type: string
|
||||
description: The python interpreter to use for python and ansible actions
|
||||
default: /usr/bin/python
|
||||
MakeHomeDir:
|
||||
type: boolean
|
||||
description: Configure PAM to create a users home directory if it does not exist.
|
||||
default: False
|
||||
|
||||
outputs:
|
||||
role_data:
|
||||
@ -49,6 +53,7 @@ outputs:
|
||||
become: yes
|
||||
vars:
|
||||
python_interpreter: {get_param: PythonInterpreter}
|
||||
makehomedir: {get_param: MakeHomeDir}
|
||||
block:
|
||||
- name: install needed packages
|
||||
package:
|
||||
@ -137,6 +142,9 @@ outputs:
|
||||
if [ -n "$realm" ]; then
|
||||
OPTS="$OPTS --realm=$realm"
|
||||
fi
|
||||
if [ "${makehomedir,,}" = "true" ]; then
|
||||
OPTS="$OPTS --mkhomedir"
|
||||
fi
|
||||
|
||||
# Ensure we have the proper domain in /etc/resolv.conf
|
||||
domain=$(hostname -d)
|
||||
|
5
releasenotes/notes/ipa-mkhomedir-c126291bcbdd0111.yaml
Normal file
5
releasenotes/notes/ipa-mkhomedir-c126291bcbdd0111.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
To allow PAM to create home directory for user who do not have one,
|
||||
ipa-client-install need an option. This change allow to enable it.
|
Loading…
Reference in New Issue
Block a user