Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update init.pp #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update init.pp #121

wants to merge 1 commit into from

Conversation

tahder
Copy link

@tahder tahder commented Mar 9, 2022

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant