diff options
Diffstat (limited to 'base/deploy/src/scriptlets/webapp_deployment.py')
-rw-r--r-- | base/deploy/src/scriptlets/webapp_deployment.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/base/deploy/src/scriptlets/webapp_deployment.py b/base/deploy/src/scriptlets/webapp_deployment.py index 4597b57bd..6c7672a22 100644 --- a/base/deploy/src/scriptlets/webapp_deployment.py +++ b/base/deploy/src/scriptlets/webapp_deployment.py @@ -25,6 +25,7 @@ import os # PKI Deployment Imports import pkiconfig as config +from pkiconfig import PKIConfig from pkiconfig import pki_master_dict as master import pkihelper as util import pkimessages as log @@ -36,21 +37,21 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): rv = 0 def spawn(self): - if master['pki_subsystem'] in config.PKI_TOMCAT_SUBSYSTEMS: + if master['pki_subsystem'] in PKIConfig.PKI_TOMCAT_SUBSYSTEMS: if config.str2bool(master['pki_skip_installation']): config.pki_log.info(log.SKIP_WEBAPP_DEPLOYMENT_SPAWN_1, __name__, - extra=config.PKI_INDENTATION_LEVEL_1) + extra=PKIConfig.PKI_INDENTATION_LEVEL_1) return self.rv config.pki_log.info(log.WEBAPP_DEPLOYMENT_SPAWN_1, __name__, - extra=config.PKI_INDENTATION_LEVEL_1) + extra=PKIConfig.PKI_INDENTATION_LEVEL_1) # Copy /usr/share/pki/server/webapps/ROOT # to <instance>/webapps/ROOT util.directory.create(master['pki_tomcat_webapps_root_path']) util.directory.copy( os.path.join( - config.PKI_DEPLOYMENT_SOURCE_ROOT, + PKIConfig.PKI_DEPLOYMENT_SOURCE_ROOT, "server", "webapps", "ROOT"), @@ -62,7 +63,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): util.directory.create(master['pki_tomcat_webapps_common_path']) util.directory.copy( os.path.join( - config.PKI_DEPLOYMENT_SOURCE_ROOT, + PKIConfig.PKI_DEPLOYMENT_SOURCE_ROOT, "common-ui"), master['pki_tomcat_webapps_common_path'], overwrite_flag=True) @@ -72,7 +73,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): util.directory.create(master['pki_tomcat_webapps_subsystem_path']) util.directory.copy( os.path.join( - config.PKI_DEPLOYMENT_SOURCE_ROOT, + PKIConfig.PKI_DEPLOYMENT_SOURCE_ROOT, "server", "webapps", "pki", @@ -88,7 +89,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): util.directory.create(master['pki_tomcat_webapps_subsystem_path']) util.directory.copy( os.path.join( - config.PKI_DEPLOYMENT_SOURCE_ROOT, + PKIConfig.PKI_DEPLOYMENT_SOURCE_ROOT, "server", "webapps", "pki", @@ -102,7 +103,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): # to <instance>/webapps/<subsystem> util.directory.copy( os.path.join( - config.PKI_DEPLOYMENT_SOURCE_ROOT, + PKIConfig.PKI_DEPLOYMENT_SOURCE_ROOT, master['pki_subsystem'].lower(), "webapps", master['pki_subsystem'].lower()), @@ -143,8 +144,8 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): return self.rv def destroy(self): - if master['pki_subsystem'] in config.PKI_TOMCAT_SUBSYSTEMS: + if master['pki_subsystem'] in PKIConfig.PKI_TOMCAT_SUBSYSTEMS: config.pki_log.info(log.WEBAPP_DEPLOYMENT_DESTROY_1, __name__, - extra=config.PKI_INDENTATION_LEVEL_1) + extra=PKIConfig.PKI_INDENTATION_LEVEL_1) util.directory.delete(master['pki_tomcat_webapps_subsystem_path']) return self.rv |