summaryrefslogtreecommitdiffstats
path: root/base/server/src
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2013-04-04 12:23:07 -0400
committerAbhishek Koneru <akoneru@redhat.com>2013-04-17 12:57:14 -0400
commit6780771cb24db4f4c7a49cb2bad02614249fc727 (patch)
tree75a2a3daefb94494e088e1704ad4e56e0d1bfa3b /base/server/src
parent0294f5e83bb4ee0525ea3fca4c9f866c0b257147 (diff)
Show some more information after installing a subsystem.
Print the command to get the status of a subsystem and the URL to access after installation. Ticket #514
Diffstat (limited to 'base/server/src')
-rw-r--r--base/server/src/engine/pkimessages.py12
-rwxr-xr-xbase/server/src/pkispawn34
2 files changed, 45 insertions, 1 deletions
diff --git a/base/server/src/engine/pkimessages.py b/base/server/src/engine/pkimessages.py
index 8a3a280f3..d5c14ec8e 100644
--- a/base/server/src/engine/pkimessages.py
+++ b/base/server/src/engine/pkimessages.py
@@ -53,6 +53,7 @@ PKI_VERBOSITY=\
" -vvv error|warning|info|debug error|warning|info|debug\n"\
" "
+
# PKI Deployment Error Messages
PKI_BADZIPFILE_ERROR_1 = "zipfile.BadZipFile: %s!"
PKI_CONFIGURATION_RESTART_1 = "After configuration, the server can be "\
@@ -307,6 +308,17 @@ PKI_CONFIG_JAVA_CONFIGURATION_EXCEPTION =\
PKI_CONFIG_RESPONSE_ADMIN_CERT = "adminCert:"
PKI_CONFIG_RESPONSE_STATUS = "status:"
PKI_CONFIG_NOT_YET_IMPLEMENTED_1 = " %s NOT YET IMPLEMENTED"
+PKI_CHECK_STATUS_MESSAGE = "\tTo check the status of the subsystem: "\
+"systemctl status pki-tomcatd\@%s.service"
+PKI_ACCESS_URL = "\tThe URL for the subsystem is https://%s:%s/%s"
+PKI_INSTANCE_RESTART_MESSAGE = "\tTo restart the subsystem: systemctl restart pki-tomcatd\@%s.service"
+
+PKI_SPAWN_INFORMATION_HEADER = "\n\t==========================================================================\n"\
+ "\t INSTALLATION INFORMATION\n"\
+ "\t==========================================================================\n"
+
+PKI_SPAWN_INFORMATION_FOOTER = "\n\t==========================================================================\n"
+
# PKI Deployment "Scriptlet" Messages
ADMIN_DOMAIN_DESTROY_1 = "depopulating '%s'"
diff --git a/base/server/src/pkispawn b/base/server/src/pkispawn
index d36de33d5..eef38204f 100755
--- a/base/server/src/pkispawn
+++ b/base/server/src/pkispawn
@@ -376,9 +376,41 @@ def main(argv):
config.pki_log.debug(pkilogging.format(config.pki_master_dict),
extra=config.PKI_INDENTATION_LEVEL_0)
- print
+ print_install_information()
+
print "Installation complete."
+ print
+
+
+def print_install_information():
+ config.pki_log.info(log.PKI_SPAWN_INFORMATION_HEADER, extra=config.PKI_INDENTATION_LEVEL_0)
+ print log.PKI_SPAWN_INFORMATION_HEADER
+
+ config.pki_log.info("\tAdmin username: %s",config.pki_master_dict['pki_admin_uid'], extra=config.PKI_INDENTATION_LEVEL_0)
+ print "\tAdmin username: %s" % config.pki_master_dict['pki_admin_uid']
+
+ config.pki_log.info("\tLocation of client database: %s",config.pki_master_dict['pki_client_database_dir'], extra=config.PKI_INDENTATION_LEVEL_0)
+ print "\tLocation of client database: %s" % config.pki_master_dict['pki_client_database_dir']
+
+ config.pki_log.info("Client certificate nickname: %s", config.pki_master_dict['pki_admin_nickname'], extra=config.PKI_INDENTATION_LEVEL_0)
+ print "\tClient certificate nickname: %s" % config.pki_master_dict['pki_admin_nickname']
+
+ config.pki_log.info(log.PKI_CHECK_STATUS_MESSAGE, config.pki_master_dict['pki_instance_name'], extra=config.PKI_INDENTATION_LEVEL_0)
+ print log.PKI_CHECK_STATUS_MESSAGE % config.pki_master_dict['pki_instance_name']
+
+ config.pki_log.info(log.PKI_INSTANCE_RESTART_MESSAGE, config.pki_master_dict['pki_instance_name'], extra=config.PKI_INDENTATION_LEVEL_0)
+ print log.PKI_INSTANCE_RESTART_MESSAGE % config.pki_master_dict['pki_instance_name']
+
+ config.pki_log.info(log.PKI_ACCESS_URL, config.pki_master_dict['pki_hostname'],
+ config.pki_master_dict['pki_https_port'],
+ config.pki_subsystem.lower(),
+ extra=config.PKI_INDENTATION_LEVEL_0)
+ print log.PKI_ACCESS_URL % (config.pki_master_dict['pki_hostname'],
+ config.pki_master_dict['pki_https_port'],
+ config.pki_subsystem.lower())
+ config.pki_log.info(log.PKI_SPAWN_INFORMATION_FOOTER, extra=config.PKI_INDENTATION_LEVEL_0)
+ print log.PKI_SPAWN_INFORMATION_FOOTER
# PKI Deployment Entry Point
if __name__ == "__main__":