Merge "Add mkhomedir option to ipa-client-install" into stable/rocky
This commit is contained in:
commit
fa9aa03cda
@ -32,6 +32,10 @@ parameters:
|
|||||||
description: Mapping of service endpoint -> protocol. Typically set
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
via parameter_defaults in the resource registry.
|
via parameter_defaults in the resource registry.
|
||||||
type: json
|
type: json
|
||||||
|
MakeHomeDir:
|
||||||
|
type: boolean
|
||||||
|
description: Configure PAM to create a users home directory if it does not exist.
|
||||||
|
default: False
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
@ -43,6 +47,8 @@ outputs:
|
|||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: enroll client in ipa and get metadata
|
- name: enroll client in ipa and get metadata
|
||||||
become: yes
|
become: yes
|
||||||
|
vars:
|
||||||
|
makehomedir: {get_param: MakeHomeDir}
|
||||||
block:
|
block:
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package:
|
package:
|
||||||
@ -138,6 +144,9 @@ outputs:
|
|||||||
if [ -n "$realm" ]; then
|
if [ -n "$realm" ]; then
|
||||||
OPTS="$OPTS --realm=$realm"
|
OPTS="$OPTS --realm=$realm"
|
||||||
fi
|
fi
|
||||||
|
if [ "${makehomedir,,}" = "true" ]; then
|
||||||
|
OPTS="$OPTS --mkhomedir"
|
||||||
|
fi
|
||||||
|
|
||||||
# Ensure we have the proper domain in /etc/resolv.conf
|
# Ensure we have the proper domain in /etc/resolv.conf
|
||||||
domain=$(hostname -d)
|
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