From 9426517749db916488760eba1266fc88ae98e24b Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Mon, 24 Jan 2022 14:55:47 +0300 Subject: [PATCH] feat: ce-setup: deploy facter script (ref: #622) (#624) --- jans-ce-setup/install.py | 1 + jans-ce-setup/setup_app/installers/config_api.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/jans-ce-setup/install.py b/jans-ce-setup/install.py index d0a8dc74516..6ffd4f522b5 100644 --- a/jans-ce-setup/install.py +++ b/jans-ce-setup/install.py @@ -217,6 +217,7 @@ def download_gcs(): download('https://ox.gluu.org/icrby8xcvbcv/cli-swagger/scim.tgz', os.path.join(jans_app_dir, 'scim-swagger-client.tgz')) download(urljoin(maven_base_url, 'admin-ui-plugin/{0}{1}/admin-ui-plugin-{0}{1}-distribution.jar'.format(app_versions['JANS_APP_VERSION'], app_versions['JANS_BUILD'])), os.path.join(jans_app_dir, 'admin-ui-plugin-distribution.jar')) download('https://github.com/GluuFederation/gluu-admin-ui/archive/refs/heads/{}.zip'.format(app_versions['ADMIN_UI_FRONTEND_BRANCH']), os.path.join(jans_app_dir, 'gluu-admin-ui.zip')) + download('https://raw.githubusercontent.com/GluuFederation/gluu-snap/master/facter/facter', os.path.join(jans_app_dir, 'facter')) if argsp.profile == 'jans': download('https://maven.gluu.org/maven/org/gluufederation/opendj/opendj-server-legacy/{0}/opendj-server-legacy-{0}.zip'.format(app_versions['OPENDJ_VERSION']), os.path.join(app_dir, 'opendj-server-legacy-{0}.zip'.format(app_versions['OPENDJ_VERSION']))) diff --git a/jans-ce-setup/setup_app/installers/config_api.py b/jans-ce-setup/setup_app/installers/config_api.py index f3dddda261f..8ac628b6e4a 100644 --- a/jans-ce-setup/setup_app/installers/config_api.py +++ b/jans-ce-setup/setup_app/installers/config_api.py @@ -47,9 +47,12 @@ def __init__(self): (os.path.join(Config.distJansFolder, 'log4j2.xml'), 'https://raw.githubusercontent.com/JanssenProject/jans-config-api/master/server/src/main/resources/log4j2.xml'), (os.path.join(Config.distJansFolder, 'log4j2-adminui.xml'), 'https://raw.githubusercontent.com/JanssenProject/jans-config-api/master/plugins/admin-ui-plugin/config/log4j2-adminui.xml'), (os.path.join(Config.distJansFolder, 'gluu-admin-ui.zip'), 'https://github.com/GluuFederation/gluu-admin-ui/archive/refs/heads/main.zip'), + (os.path.join(Config.distJansFolder, 'facter'), 'https://raw.githubusercontent.com/GluuFederation/gluu-snap/master/facter/facter'), ] def install(self): + self.copyFile(self.source_files[6][0], '/usr/sbin') + self.run([paths.cmd_chmod, '+x', '/usr/sbin/facter']) self.installJettyService(self.jetty_app_configuration[self.service_name], True) self.logIt("Copying fido.war into jetty webapps folder...") jettyServiceWebapps = os.path.join(self.jetty_base, self.service_name, 'webapps')