sgnl05 / sgnl05-sssd

Puppet module for SSSD
https://forge.puppet.com/sgnl05/sssd
GNU General Public License v3.0
17 stars 76 forks source link

Update init.pp #121

Open tahder opened 2 years ago

tahder commented 2 years ago

Used to fix with RHEL 8.5 and Ubuntu 20.04 LTS.

If not added the condition to 9, will get error like these:

Info: Using configured environment 'predev' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Info: Caching catalog for txxx-dev1.abc.x.y Info: Applying configuration version 'txy-predev-ccbb56e1823' Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Invalid option --enablesssd: unknown option Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Usage: /bin/authselect select PROFILE-ID [OPTIONS...] Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Command options: Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -f, --force Enforce changes Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -b Backup system files before activating profile Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: (generate unique name) Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --backup=NAME Backup system files before activating profile Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --nobackup Do not backup system files when --force is set Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -q, --quiet Do not print profile requirements Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Common options: Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --debug Print error messages Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --trace Print trace messages Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --warn Print warning messages Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Help options: Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -?, --help Show this help message Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --usage Display brief usage message Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: [error] Unable to parse command arguments Error: '/bin/authselect select sssd --enablesssd --enablesssdauth --enablemkhomedir --force' returned 1 instead of one of [0] Error: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: change from 'notrun' to ['0'] failed: '/bin/authselect select sssd --enablesssd --enablesssdauth --enablemkhomedir --force' returned 1 instead of one of [0] Notice: Applied catalog in 4.79 seconds