By: Dylan Goings user 13 Feb 2019 at 3:53 p.m. CST

2 Responses
Dylan Goings gravatar
Is there a way to backup the system configuration to implement on a new instance of a Gluu server? E.g. using the export/import scripts for updating versions, but I'm not updating a version, I just want to install server instance and not have to reconfigure everything. A use case for this is that I have a server in AWS and I can write an automated deployment script that creates a new Gluu server with all of the base configuration that I'd need. I have tried doing a complete backup of the ldap data following https://gluu.org/docs/ce/operation/backup/ but this fails when trying to import to a new server, I assume because lots of passwords/keys are incorrect. I don't need to migrate users here, just configuration choices like enabling passport_social authentication and creating OpenID Connect clients.

By Michael Schwartz Account Admin 14 Feb 2019 at 12:21 a.m. CST

Michael Schwartz gravatar
You're question is very general, as deployment is a big topic. Also, keep in mind that you can run setup.py and use the input from `setup.properties.last`. You also might want to review the code in the Cluster Manager product: https://github.com/GluuFederation/cluster-mgr Also, you can tar /opt/gluu-server folder. If you install the package, and replace with your tar, it should bring up the same instance. In Gluu Server 4, we are introducing API's for oxTrust, which should make it easier to script installation.

By Dylan Goings user 14 Feb 2019 at 10:15 a.m. CST

Dylan Goings gravatar
Thanks for your answer, Michael. I believe the APIs for version 4 are what we're looking for. Is there a timeline for that release? Sorry if my original question was a bit too general. To give a little more detail, we'd like to be able to quickly stand up new instances of the Gluu server, already preconfigured with certain settings that you currently manage in oxTrust, like enabling the passport_social script and adding a Passport strategy with clientId and secret. Also adding some default users, adding a SAML trust relationship, etc. But this would be a different server in that it would have a new IP, hostname, certs, etc. so we don't want just a clone of an existing server. My hope was that if there were a way to get a backup of the oxTrust configuration, those files could be modified and used to quickly setup a new server. We're already using setup.properties to auto-configure a new installation but I haven't looked deeply into all of the settings in there. Could there be some properties that I could edit in that file to achieve some of the things I'd like to do in oxTrust?