Skip to content

Commit

Permalink
Merge webapp_deployment.py into subsystem_layout.py
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Jul 19, 2023
1 parent d9a29df commit 3659baf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 61 deletions.
2 changes: 0 additions & 2 deletions base/server/etc/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ spawn_scriplets=
infrastructure_layout
instance_layout
subsystem_layout
webapp_deployment
security_databases
selinux_setup
keygen
Expand All @@ -53,7 +52,6 @@ destroy_scriplets=
initialization
configuration
keygen
webapp_deployment
subsystem_layout
security_databases
instance_layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,16 @@ def spawn(self, deployer):

def destroy(self, deployer):

logger.info('Removing %s subsystem', deployer.mdict['pki_subsystem'])

instance = self.instance
subsystem_name = deployer.mdict['pki_subsystem'].lower()

logger.info('Undeploying /%s web application', subsystem_name)

subsystem = instance.get_subsystem(subsystem_name)
subsystem.disable(force=deployer.force)

logger.info('Removing %s subsystem', deployer.mdict['pki_subsystem'])

subsystem = instance.get_subsystem(deployer.mdict['pki_subsystem'].lower())
instance.remove_subsystem(subsystem)

if config.str2bool(deployer.mdict['pki_registry_enable']):
Expand Down

This file was deleted.

3 changes: 2 additions & 1 deletion base/server/python/pki/server/subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,11 @@ def enable(self, wait=False, max_wait=60, timeout=None):
max_wait=max_wait,
timeout=timeout)

def disable(self, wait=False, max_wait=60, timeout=None):
def disable(self, force=False, wait=False, max_wait=60, timeout=None):

self.instance.undeploy_webapp(
self.name,
force=force,
wait=wait,
max_wait=max_wait,
timeout=timeout)
Expand Down

0 comments on commit 3659baf

Please sign in to comment.