Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Update init.pp - #121

Open
tahder wants to merge 1 commit into
sgnl05:masterfrom
tahder:patch-1
Open

Update init.pp#121
tahder wants to merge 1 commit into
sgnl05:masterfrom
tahder:patch-1

Conversation

@tahder

@tahder tahder commented Mar 9, 2022

Copy link
Copy Markdown

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

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant