Bug 1554402 - Implement a non-interactive mode
Summary: Implement a non-interactive mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: pwkickstart
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Lukas Zapletal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-12 15:45 UTC by Angelo Lisco
Modified: 2018-04-06 20:33 UTC (History)
1 user (show)

Fixed In Version: pwkickstart-1.0.3-1.el7
Clone Of:
Environment:
Last Closed: 2018-04-06 20:33:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Angelo Lisco 2018-03-12 15:45:55 UTC
Description of problem:
pwkickstart is not usable in a non-interactive script.
One use-case is a cobbler trigger (but I suppose also a foreman hook can be a good example) as you can generate a "per-system" snippet which can be embedded on the kickstart file

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. echo "mypassword" | pwkickstart
2.
3.

Actual results:
The program expects a password from the user

Expected results:
The program accept a password from the standard input
Maybe, a specific switch (for example "-s" or "--stdin") can be implemented to modify the actual interactive behaviour.

Additional info:
It would also be great if we can pass an option to specify the encryption method instead of printing all the different methods (md5, sha-256 and sha-512).
For reference, you can take a look at the "mkpasswd" included in the the debian/ubuntu whois package (https://packages.ubuntu.com/artful/whois)
http://manpages.ubuntu.com/manpages/artful/en/man1/mkpasswd.1.html

Comment 2 Fedora Update System 2018-03-22 10:48:59 UTC
pwkickstart-1.0.3-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-4c7864b3e7

Comment 3 Fedora Update System 2018-03-22 18:05:50 UTC
pwkickstart-1.0.3-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-4c7864b3e7

Comment 4 Fedora Update System 2018-04-06 20:33:15 UTC
pwkickstart-1.0.3-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.