diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2013-02-05 17:13:22 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-02-05 17:29:01 -0500 |
commit | 991577dd40bbb18613893362783d0cd06cbdce79 (patch) | |
tree | dbe1641bc003d7ec67c0dfbae0a24e74e178fdf0 /base/deploy/src/scriptlets/webapp_deployment.py | |
parent | 055921c1e5e8e74bfe487d6b8228da3ab5e1f9a4 (diff) | |
download | pki-991577dd40bbb18613893362783d0cd06cbdce79.tar.gz pki-991577dd40bbb18613893362783d0cd06cbdce79.tar.xz pki-991577dd40bbb18613893362783d0cd06cbdce79.zip |
Rearranged context.xml.
Previously the context.xml files are deployed into META-INF folders
in each webapps. They now have been moved into <instance>/conf/
Catalina/localhost/<subsystem>.xml to allow further clean-up.
Diffstat (limited to 'base/deploy/src/scriptlets/webapp_deployment.py')
-rw-r--r-- | base/deploy/src/scriptlets/webapp_deployment.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/base/deploy/src/scriptlets/webapp_deployment.py b/base/deploy/src/scriptlets/webapp_deployment.py index 958d5e271..a3b459ab3 100644 --- a/base/deploy/src/scriptlets/webapp_deployment.py +++ b/base/deploy/src/scriptlets/webapp_deployment.py @@ -45,6 +45,25 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): config.pki_log.info(log.WEBAPP_DEPLOYMENT_SPAWN_1, __name__, extra=config.PKI_INDENTATION_LEVEL_1) + # Copy /usr/share/pki/server/conf/Catalina/localhost + # to <instance>/conf/Catalina/localhost + util.directory.create( + os.path.join( + master['pki_instance_configuration_path'], + "Catalina")) + util.directory.copy( + os.path.join( + config.PKI_DEPLOYMENT_SOURCE_ROOT, + "server", + "conf", + "Catalina", + "localhost"), + os.path.join( + master['pki_instance_configuration_path'], + "Catalina", + "localhost"), + overwrite_flag=True) + # Copy /usr/share/pki/server/webapps/ROOT # to <instance>/webapps/ROOT util.directory.create(master['pki_tomcat_webapps_root_path']) @@ -98,6 +117,21 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): "admin"), overwrite_flag=True) + # Copy /usr/share/pki/<subsystem>/conf/Catalina/localhost + # to <instance>/conf/Catalina/localhost + util.directory.copy( + os.path.join( + config.PKI_DEPLOYMENT_SOURCE_ROOT, + master['pki_subsystem_type'], + "conf", + "Catalina", + "localhost"), + os.path.join( + master['pki_instance_configuration_path'], + "Catalina", + "localhost"), + overwrite_flag=True) + # Copy /usr/share/pki/<subsystem>/webapps/<subsystem> # to <instance>/webapps/<subsystem> util.directory.copy( |