Highlighted

Automate/add dynamic value in OSGI

rajeshs28932860

08-08-2019

Hi

I am trying to automate the OSGI config for sling distribution in author. the configuration is "Apache Sling Distribution Agent - Sync Agents Factory" which holds hardcoded values of publisher IP's. In a failover scenario, while bringing up new publisher this config has to be changed with new publisher ip added and exisiting ip removed.

is there a better way to dynamically update this OSGI value?

through CURL or to make a placeholder to read currently connected publisher instance, get the IP and update it here. Not wanting any java codes. But want to try it either in CURL or with any better approach.

Replies

Highlighted

rajeshs28932860

09-08-2019

in this case for a default configuration like "Apache Sling Distribution Agent - Sync Agents Factory" Is it ok to put under repo based or run mode based configuration and keep checking or updating say every 30mins ? Will that configuration reflect immediately ?