diff options
author | Matthew Harmsen <mharmsen@pki.usersys.redhat.com> | 2015-07-02 11:09:14 -0600 |
---|---|---|
committer | Matthew Harmsen <mharmsen@pki.usersys.redhat.com> | 2015-07-02 11:09:14 -0600 |
commit | 4af223feb262a707b65d4860f6e8552873306209 (patch) | |
tree | bf5033737c52f785f0584e9ead022b8d8752c24b /base/server/sbin | |
parent | ac979100dfa45ff3d194349fdec093aa076815f8 (diff) | |
download | pki-4af223feb262a707b65d4860f6e8552873306209.tar.gz pki-4af223feb262a707b65d4860f6e8552873306209.tar.xz pki-4af223feb262a707b65d4860f6e8552873306209.zip |
Limited Interactive Installation Support
- PKI TRAC Ticket #1441 - Lack of Interactive Installation Support
(Cloning, Subordinates, Externals, HSMs, ECC)
Diffstat (limited to 'base/server/sbin')
-rwxr-xr-x | base/server/sbin/pkispawn | 70 |
1 files changed, 37 insertions, 33 deletions
diff --git a/base/server/sbin/pkispawn b/base/server/sbin/pkispawn index 893a22a32..bebbf0b77 100755 --- a/base/server/sbin/pkispawn +++ b/base/server/sbin/pkispawn @@ -125,8 +125,12 @@ def main(argv): parser.validate() interactive = False - while True: + if config.user_deployment_cfg is None: + interactive = True + parser.indent = 0 + print log.PKISPAWN_INTERACTIVE_INSTALLATION + while True: # -s <subsystem> if args.pki_subsystem is None: interactive = True @@ -215,38 +219,38 @@ def main(argv): config.pki_subsystem, 'pki_client_admin_cert') - if parser.mdict['pki_hsm_enable'] == 'True': - use_hsm = 'Y' - else: - use_hsm = 'N' - - use_hsm = parser.read_text( - 'Using hardware security module (HSM) (Yes/No)', - default=use_hsm, options=['Yes', 'Y', 'No', 'N'], - sign='?', case_sensitive=False).lower() - - if use_hsm == 'y' or use_hsm == 'yes': - # XXX: Suppress interactive HSM installation - print "Interactive HSM installation is currently unsupported." - sys.exit(0) - - # TBD: Interactive HSM installation - # parser.set_property(config.pki_subsystem, - # 'pki_hsm_enable', - # 'True') - # modulename = parser.read_text( - # 'HSM Module Name (e. g. - nethsm)', allow_empty=False) - # parser.set_property(config.pki_subsystem, - # 'pki_hsm_modulename', - # modulename) - # libfile = parser.read_text( - # 'HSM Lib File ' + - # '(e. g. - /opt/nfast/toolkits/pkcs11/libcknfast.so)', - # allow_empty=False) - # parser.set_property(config.pki_subsystem, - # 'pki_hsm_libfile', - # libfile) - print + # if parser.mdict['pki_hsm_enable'] == 'True': + # use_hsm = 'Y' + # else: + # use_hsm = 'N' + + # use_hsm = parser.read_text( + # 'Using hardware security module (HSM) (Yes/No)', + # default=use_hsm, options=['Yes', 'Y', 'No', 'N'], + # sign='?', case_sensitive=False).lower() + + # if use_hsm == 'y' or use_hsm == 'yes': + # # XXX: Suppress interactive HSM installation + # print "Interactive HSM installation is currently unsupported." + # sys.exit(0) + + # TBD: Interactive HSM installation + # parser.set_property(config.pki_subsystem, + # 'pki_hsm_enable', + # 'True') + # modulename = parser.read_text( + # 'HSM Module Name (e. g. - nethsm)', allow_empty=False) + # parser.set_property(config.pki_subsystem, + # 'pki_hsm_modulename', + # modulename) + # libfile = parser.read_text( + # 'HSM Lib File ' + + # '(e. g. - /opt/nfast/toolkits/pkcs11/libcknfast.so)', + # allow_empty=False) + # parser.set_property(config.pki_subsystem, + # 'pki_hsm_libfile', + # libfile) + # print print "Directory Server:" while True: |