summaryrefslogtreecommitdiffstats
path: root/base/deploy/src/scriptlets/instance_layout.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/deploy/src/scriptlets/instance_layout.py')
-rw-r--r--base/deploy/src/scriptlets/instance_layout.py167
1 files changed, 0 insertions, 167 deletions
diff --git a/base/deploy/src/scriptlets/instance_layout.py b/base/deploy/src/scriptlets/instance_layout.py
index b4d1a50..0df4181 100644
--- a/base/deploy/src/scriptlets/instance_layout.py
+++ b/base/deploy/src/scriptlets/instance_layout.py
@@ -241,173 +241,6 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
def respawn(self):
config.pki_log.info(log.INSTANCE_RESPAWN_1, __name__,
extra=config.PKI_INDENTATION_LEVEL_1)
- # update instance base
- util.directory.modify(master['pki_instance_path'])
- # update instance logs
- util.directory.modify(master['pki_instance_log_path'])
- # update instance configuration
- util.directory.modify(master['pki_instance_configuration_path'])
- # update instance registry
- util.directory.modify(master['pki_instance_type_registry_path'])
- util.directory.modify(master['pki_instance_registry_path'])
- # update Apache/Tomcat specific instance
- if master['pki_subsystem'] in config.PKI_TOMCAT_SUBSYSTEMS:
- # update Tomcat instance base
- util.directory.modify(master['pki_tomcat_common_path'])
- util.directory.modify(master['pki_tomcat_common_lib_path'])
- util.directory.modify(master['pki_instance_lib'])
- util.directory.modify(master['pki_instance_lib_log4j_properties'])
- util.directory.modify(master['pki_tomcat_webapps_path'])
-
- common_images = os.path.join(
- master['pki_tomcat_webapps_common_path'],
- "images")
-
- # Copy /usr/share/pki/common-ui/admin/console/img
- # to <instance>/webapp/pki/images
- util.directory.copy(
- os.path.join(
- config.PKI_DEPLOYMENT_SOURCE_ROOT,
- "common-ui",
- "admin",
- "console",
- "img"),
- common_images,
- overwrite_flag=True)
-
- # Copy /usr/share/pki/common-ui/css
- # to <instance>/webapp/pki/css
- util.directory.copy(
- os.path.join(
- config.PKI_DEPLOYMENT_SOURCE_ROOT,
- "common-ui",
- "css"),
- os.path.join(
- master['pki_tomcat_webapps_common_path'],
- "css"),
- overwrite_flag=True)
-
- # Copy /usr/share/pki/common-ui/img
- # to <instance>/webapp/pki/images
- util.directory.copy(
- os.path.join(
- config.PKI_DEPLOYMENT_SOURCE_ROOT,
- "common-ui",
- "img"),
- common_images,
- overwrite_flag=True)
-
- # Copy /usr/share/pki/<subsystem>-ui/webapps/<subsystem>/admin/graphics
- # to <instance>/webapp/pki/images
- dir = os.path.join(
- config.PKI_DEPLOYMENT_SOURCE_ROOT,
- master['pki_subsystem'].lower() + "-ui",
- "webapps",
- master['pki_subsystem'].lower(),
- "admin",
- "graphics")
- if (util.directory.exists(dir)):
- util.directory.copy(
- dir,
- common_images,
- overwrite_flag=True)
-
- # Copy /usr/share/pki/<subsystem>-ui/webapps/<subsystem>/agent/graphics
- # to <instance>/webapp/pki/images
- dir = os.path.join(
- config.PKI_DEPLOYMENT_SOURCE_ROOT,
- master['pki_subsystem'].lower() + "-ui",
- "webapps",
- master['pki_subsystem'].lower(),
- "agent",
- "graphics")
- if (util.directory.exists(dir)):
- util.directory.copy(
- dir,
- common_images,
- overwrite_flag=True)
-
- # Copy /usr/share/pki/<subsystem>-ui/webapps/<subsystem>/ee/graphics
- # to <instance>/webapp/pki/images
- dir = os.path.join(
- config.PKI_DEPLOYMENT_SOURCE_ROOT,
- master['pki_subsystem'].lower() + "-ui",
- "webapps",
- master['pki_subsystem'].lower(),
- "ee",
- "graphics")
- if (util.directory.exists(dir)):
- util.directory.copy(
- dir,
- common_images,
- overwrite_flag=True)
-
- util.directory.copy(
- os.path.join(
- config.PKI_DEPLOYMENT_SOURCE_ROOT,
- "server",
- "webapps",
- "ROOT"),
- master['pki_tomcat_webapps_root_path'],
- overwrite_flag=True)
- util.directory.modify(master['pki_tomcat_webapps_root_path'])
- util.directory.modify(master['pki_tomcat_webapps_root_webinf_path'])
- util.directory.modify(master['pki_tomcat_work_path'])
- util.directory.modify(master['pki_tomcat_work_catalina_path'])
- util.directory.modify(master['pki_tomcat_work_catalina_host_path'])
- util.directory.modify(
- master['pki_tomcat_work_catalina_host_run_path'])
- util.directory.modify(
- master['pki_tomcat_work_catalina_host_subsystem_path'])
- # update Tomcat instance logs
- # update Tomcat instance configuration
- # update Tomcat instance registry
- # update Tomcat instance convenience symbolic links
- util.symlink.modify(master['pki_tomcat_bin_link'])
- util.symlink.modify(master['pki_instance_systemd_link'],
- uid=0, gid=0)
- # update Tomcat instance common lib jar symbolic links
-
- util.symlink.modify(
- master['pki_apache_commons_collections_jar_link'])
- util.symlink.modify(master['pki_apache_commons_lang_jar_link'])
- util.symlink.modify(master['pki_apache_commons_logging_jar_link'])
- util.symlink.modify(master['pki_commons_codec_jar_link'])
- util.symlink.modify(master['pki_httpclient_jar_link'])
- util.symlink.modify(master['pki_httpcore_jar_link'])
- util.symlink.modify(master['pki_javassist_jar_link'])
- util.symlink.modify(master['pki_resteasy_jaxrs_api_jar_link'])
- util.symlink.modify(master['pki_jettison_jar_link'])
- util.symlink.modify(master['pki_jss_jar_link'])
- util.symlink.modify(master['pki_ldapjdk_jar_link'])
- util.symlink.modify(master['pki_certsrv_jar_link'])
- util.symlink.modify(master['pki_cmsbundle_jar_link'])
- util.symlink.modify(master['pki_cmscore_jar_link'])
- util.symlink.modify(master['pki_cms_jar_link'])
- util.symlink.modify(master['pki_cmsutil_jar_link'])
- util.symlink.modify(master['pki_nsutil_jar_link'])
- util.symlink.modify(master['pki_resteasy_atom_provider_jar_link'])
- util.symlink.modify(master['pki_resteasy_jaxb_provider_jar_link'])
- util.symlink.modify(master['pki_resteasy_jaxrs_jar_link'])
- util.symlink.modify(
- master['pki_resteasy_jettison_provider_jar_link'])
- util.symlink.modify(master['pki_scannotation_jar_link'])
- if master['pki_subsystem'] == 'TKS':
- util.symlink.modify(master['pki_symkey_jar_link'])
- util.symlink.modify(master['pki_tomcatjss_jar_link'])
- util.symlink.modify(master['pki_velocity_jar_link'])
- util.symlink.modify(master['pki_xerces_j2_jar_link'])
- util.symlink.modify(master['pki_xml_commons_apis_jar_link'])
- util.symlink.modify(master['pki_xml_commons_resolver_jar_link'])
- # update shared NSS security databases for this instance
- util.directory.modify(master['pki_database_path'])
- # update instance convenience symbolic links
- util.symlink.modify(master['pki_instance_database_link'])
- util.symlink.modify(master['pki_instance_conf_link'])
- util.directory.copy(master['pki_source_server_path'],
- master['pki_instance_configuration_path'],
- overwrite_flag=True)
- util.symlink.modify(master['pki_instance_logs_link'])
return self.rv
def destroy(self):