def save(self): if os.path.exists(Config.setup_properties_fn): self.backupFile(Config.setup_properties_fn) last_prop = Config.setup_properties_fn + '.last' if os.path.exists(last_prop): self.backupFile(last_prop) propertiesUtils.save_properties()
def do_installation(): jansProgress.before_start() jansProgress.start() try: jettyInstaller.calculate_selected_aplications_memory() if not Config.installed_instance: jansInstaller.configureSystem() jansInstaller.make_salt() oxauthInstaller.make_salt() if not base.snap: jreInstaller.start_installation() jettyInstaller.start_installation() jythonInstaller.start_installation() jansInstaller.copy_scripts() jansInstaller.encode_passwords() Config.ldapCertFn = Config.opendj_cert_fn Config.ldapTrustStoreFn = Config.opendj_p12_fn Config.encoded_ldapTrustStorePass = Config.encoded_opendj_p12_pass jansInstaller.prepare_base64_extension_scripts() jansInstaller.render_templates() jansInstaller.render_configuration_template() if not base.snap: jansInstaller.update_hostname() jansInstaller.set_ulimits() jansInstaller.copy_output() jansInstaller.setup_init_scripts() # Installing jans components if Config.wrends_install: openDjInstaller.start_installation() if Config.cb_install: couchbaseInstaller.start_installation() if (Config.installed_instance and 'installHttpd' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installHttpd): httpdinstaller.configure() if (Config.installed_instance and 'installOxAuth' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installOxAuth): oxauthInstaller.start_installation() if (Config.installed_instance and 'installFido2' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installFido2): fidoInstaller.start_installation() if (Config.installed_instance and 'installScimServer' in Config.addPostSetupService ) or (not Config.installed_instance and Config.installScimServer): scimInstaller.start_installation() if (Config.installed_instance and configApiInstaller.install_var in Config.addPostSetupService) or ( not Config.installed_instance and Config.get(configApiInstaller.install_var)): configApiInstaller.start_installation() #if (Config.installed_instance and 'installOxd' in Config.addPostSetupService) or (not Config.installed_instance and Config.installOxd): # oxdInstaller.start_installation() if argsp.t: testDataLoader.load_test_data() jansProgress.progress(PostSetup.service_name, "Saving properties") propertiesUtils.save_properties() time.sleep(2) for service in jansProgress.services: if service['app_type'] == static.AppType.SERVICE: jansProgress.progress( PostSetup.service_name, "Starting {}".format(service['name'].title())) time.sleep(2) service['object'].stop() service['object'].start() jansInstaller.post_install_tasks() jansProgress.progress(static.COMPLETED) print() for m in Config.post_messages: print(m) except: base.logIt("FATAL", True, True)
def save(self): propertiesUtils.save_properties()
def do_installation(): if not GSA: gluuProgress.before_start() gluuProgress.start() try: jettyInstaller.calculate_selected_aplications_memory() if not Config.installed_instance: gluuInstaller.configureSystem() gluuInstaller.make_salt() oxauthInstaller.make_salt() if not base.snap: jreInstaller.start_installation() jettyInstaller.start_installation() jythonInstaller.start_installation() nodeInstaller.start_installation() gluuInstaller.copy_scripts() gluuInstaller.encode_passwords() oxtrustInstaller.generate_api_configuration() Config.ldapCertFn = Config.opendj_cert_fn Config.ldapTrustStoreFn = Config.opendj_p12_fn Config.encoded_ldapTrustStorePass = Config.encoded_opendj_p12_pass Config.oxTrustConfigGeneration = 'true' if Config.installSaml else 'false' gluuInstaller.prepare_base64_extension_scripts() gluuInstaller.render_templates() gluuInstaller.render_configuration_template() if not base.snap: gluuInstaller.update_hostname() gluuInstaller.set_ulimits() gluuInstaller.copy_output() gluuInstaller.setup_init_scripts() # Installing gluu components if Config.wrends_install: openDjInstaller.start_installation() if Config.cb_install: couchbaseInstaller.start_installation() if (Config.installed_instance and 'installHttpd' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installHttpd): httpdinstaller.configure() if (Config.installed_instance and 'installOxAuth' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installOxAuth): oxauthInstaller.start_installation() if (Config.installed_instance and 'installOxAuthRP' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installOxAuthRP): oxauthInstaller.install_oxauth_rp() if (Config.installed_instance and 'installOxTrust' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installOxTrust): oxtrustInstaller.start_installation() if (Config.installed_instance and 'installFido2' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installFido2): fidoInstaller.start_installation() if (Config.installed_instance and 'installScimServer' in Config.addPostSetupService ) or (not Config.installed_instance and Config.installScimServer): scimInstaller.start_installation() if (Config.installed_instance and 'installSaml' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installSaml): samlInstaller.start_installation() if (Config.installed_instance and 'installOxd' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installOxd): oxdInstaller.start_installation() if (Config.installed_instance and 'installCasa' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installCasa): casaInstaller.start_installation() if (Config.installed_instance and 'installPassport' in Config.addPostSetupService) or ( not Config.installed_instance and Config.installPassport): passportInstaller.start_installation() if not Config.installed_instance: # this will install only base radiusInstaller.start_installation() if (Config.installed_instance and 'installGluuRadius' in Config.addPostSetupService ) or (not Config.installed_instance and Config.installGluuRadius): radiusInstaller.install_gluu_radius() gluuProgress.progress(PostSetup.service_name, "Saving properties") propertiesUtils.save_properties() time.sleep(2) for service in gluuProgress.services: if service['app_type'] == static.AppType.SERVICE: gluuProgress.progress( PostSetup.service_name, "Starting {}".format(service['name'].title())) time.sleep(2) service['object'].stop() service['object'].start() if service['name'] == 'oxauth' and Config.get( 'installOxAuthRP'): gluuProgress.progress(PostSetup.service_name, "Starting Oxauth-rp") service['object'].start('oxauth-rp') gluuInstaller.post_install_tasks() gluuProgress.progress(static.COMPLETED) if not GSA: print() for m in Config.post_messages: print(m) except: if GSA: gluuProgress.progress(static.ERROR, str(traceback.format_exc())) base.logIt("FATAL", True, True)