Foreman ignore password after -S

Problem:

The problem is when a password contains hyphen(-) followed by Capital(S) for example “abc-S3000” or “56-Sdfkg”, then foreman ignores all the characters after “-S” and gives error while foreman installation

Expected outcome:
The foreman should accept the password as it is along with (-S)

Foreman and Proxy versions:
Foreman version 1.24, foreman-proxy-1.24.3

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:
Error Log Below

foreman-installer \

–foreman-configure-epel-repo=false
–foreman-configure-scl-repo=false
–enable-foreman-compute-libvirt
–foreman-initial-admin-password=abc-S3000
ERROR: Scenario (/etc/foreman-installer/scenarios.d/3000.yaml) was not found, can not continue

This was Bug #30218: Arguments containing -S are interpreted as scenarios - Kafo - Foreman and is resolved in current versions. Version 1.24 is no longer supported and won’t receive an update. If you’re doing a fresh installation, you should really use the latest stable version. If you’re upgrading, passing an initial password doesn’t affect anything.

2 Likes