nsswitch.conf is modified only is `sssd_nsswitch_manage` is set (fix #5).
This commit is contained in:
parent
2b4c123983
commit
93bb488176
|
@ -1,4 +1,9 @@
|
||||||
|
|
||||||
|
## v1.2
|
||||||
|
|
||||||
|
### Enhancement
|
||||||
|
* nsswitch.conf is modified only is `sssd_nsswitch_manage` is set (fix #5).
|
||||||
|
|
||||||
## v1.1.4
|
## v1.1.4
|
||||||
|
|
||||||
### Enhancement
|
### Enhancement
|
||||||
|
|
|
@ -24,6 +24,7 @@ Highly inspired by [Lae's system_ldap role][lae sssd galaxy] with minors updates
|
||||||
* **sssd_mkhomedir** : If home directories should be created at login [default : `true`].
|
* **sssd_mkhomedir** : If home directories should be created at login [default : `true`].
|
||||||
* **sssd_home_path** : Path where home directories are stored [default : `/home`].
|
* **sssd_home_path** : Path where home directories are stored [default : `/home`].
|
||||||
* **sssd_sudoers_ldap** : If sudo must look to `sss` the list of sudoers [default : `false`].
|
* **sssd_sudoers_ldap** : If sudo must look to `sss` the list of sudoers [default : `false`].
|
||||||
|
* **sssd_nsswitch_manage** : If nsswitch should be managed by the role [default : `false`].
|
||||||
* **sssd_service_name** : SSSD's service name [default : `sssd`].
|
* **sssd_service_name** : SSSD's service name [default : `sssd`].
|
||||||
* **sssd_flush_handlers** : If handlers need to be applied at the end of the role [default : `False`].
|
* **sssd_flush_handlers** : If handlers need to be applied at the end of the role [default : `False`].
|
||||||
|
|
||||||
|
@ -68,7 +69,7 @@ This role will :
|
||||||
* Install needed packages to provide `sssd`.
|
* Install needed packages to provide `sssd`.
|
||||||
* Manage the default `sssd` configuration file (`/etc/sssd/sssd.conf`).
|
* Manage the default `sssd` configuration file (`/etc/sssd/sssd.conf`).
|
||||||
* Create an additional configuration file to only store the bind_password (`/etc/sssd/conf.d/domain.bind.conf`).
|
* Create an additional configuration file to only store the bind_password (`/etc/sssd/conf.d/domain.bind.conf`).
|
||||||
* Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file.
|
* Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file if `sssd_nsswitch_manage` is set.
|
||||||
* Manage `sssd` service.
|
* Manage `sssd` service.
|
||||||
* Restart `systemd-logind` service.
|
* Restart `systemd-logind` service.
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@ sssd_search_base: ''
|
||||||
sssd_bind_dn: ''
|
sssd_bind_dn: ''
|
||||||
sssd_bind_password: ''
|
sssd_bind_password: ''
|
||||||
|
|
||||||
|
# nsswitch configuration
|
||||||
|
sssd_nsswitch_manage: false
|
||||||
|
|
||||||
# Service
|
# Service
|
||||||
sssd_service_name: 'sssd'
|
sssd_service_name: 'sssd'
|
||||||
sssd_flush_handlers: False
|
sssd_flush_handlers: False
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: not sssd_sudoers_ldap
|
when: not sssd_sudoers_ldap and sssd_nsswitch_manage
|
||||||
|
|
||||||
# Configuration file
|
# Configuration file
|
||||||
- name: CONFIG sssd.conf
|
- name: CONFIG sssd.conf
|
||||||
|
|
Loading…
Reference in New Issue