May 22, 2020 at 10:47 am #27964
is there any way to restore AM configuration on alternate server ? for example we one site https://example.com and 4 tomcat servers hosted AM application and CTS configured on different servers.
can I restore all configuration on One AM server and one CTS server ?
regards..HemantMay 22, 2020 at 4:29 pm #27965Jatinder SinghParticipant
Are you attempting to build a new environment from existing? For example, using configuration of existing environment to stand-up 1 AM server and 1 CTS server? If the assumption is correct – are you using an external DS config or embedded?May 23, 2020 at 8:02 am #27966
plan is to build new environment and import configuration .
install fresh AM Server , CTS server & import DJ configuration from existing environment will it work ?
or do you suggest any other method ..
yes , we are using external DS config ..
Regards..HemantMay 26, 2020 at 5:41 pm #27973Jatinder SinghParticipant
Yes, it can be done and is usually part of your DevOps practice. You can also reference ForgeRock’s
forgeopsthe cloud deployment model where the configuration is git managed and is used to spin new instances and even promoted between environments.
At high-level, the idea is to use environment variables/placeholders and substitute with real values as part of your DevOps operation.
If you want to get close to apple to apple comparison, you will have to import all configuration including
globalalong with any
realmsyou may have. If you don’t have much custom configuration defined in the
globalspace, you can only focus on importing
realms. And then you can define CTS configuration manually through AM console.
Below are high-level steps for importing all configuration from HOST to TARGET:
NOTE: Make sure you are working with the same version of AM and Amster;
amsterto export current configuration from your HOST environment;
2. Since you only have a single server in the TARGET environment, delete all servers from the
Serversdirectory such that – only
01directory is left along with
3. If your
am1.example.com, run a
grepto find all occurrences of
am1.example.comto get an idea of places you need to run
sedto replace current
fqdnof your HOST am instance with your new server. E.g. replacing
5. Also edit the
Realms/root.jsonto modify your aliases accordingly;
6. Perform the same for
cts-ds. If you have multiple
ctsservers set-up in your HOST, you will need to remove all extra such that only one CTS and Config is referenced.
7. Verify your work to ensure only TARGET severs are in the
amsterexport and all references to HA servers have been removed;
8. Install new AM environment with one config and cts server as defined in your requirements;
9. Once successfully set-up, run
amsterimport with fail on error option to import the modified configuration. If you experience errors, fix and try again until the configuration is successfully imported without errors.
As suggested above – you may be better off importing only the realm configuration which is slightly easier than having to deal with Servers under
globalconfiguration along with CTS and Config DS. The process is the same and you will still have to run
sedoperations but you can delete global directory and only focus on
realms. Once your
realmsis correctly massaged with respect to your TARGET environment, you can run
amsterimport with fail on error option to import configuration.
Hope this helps!May 26, 2020 at 5:53 pm #27975
Thanks for your inputs and suggestion. I will try same …
You must be logged in to reply to this topic.