Skip to content

Commit

Permalink
Update instance_layout.py
Browse files Browse the repository at this point in the history
The instance_layout.py has been updated to update/overwrite
existing instance config files.
  • Loading branch information
edewata committed Nov 28, 2023
1 parent 0ed9b8c commit a15ae59
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ def spawn(self, deployer):
logger.info('Creating %s', instance.password_conf)
instance.store_passwords()

# if this is not the first subsystem, skip
if instance.get_subsystems():
logger.info('Installing %s instance', instance.name)
return

deployer.configure_server_xml()

# Copy /usr/share/pki/server/conf/tomcat.conf
Expand Down Expand Up @@ -263,6 +258,11 @@ def spawn(self, deployer):
if config.str2bool(deployer.mdict['pki_registry_enable']):
instance.create_registry()

# if this is not the first subsystem, skip
if instance.get_subsystems():
logger.info('Installing %s instance', instance.name)
return

if config.str2bool(deployer.mdict['pki_systemd_service_create']):

user = deployer.mdict['pki_user']
Expand Down

0 comments on commit a15ae59

Please sign in to comment.