How to have socialconfig for Communities runmode specific (kind of like the OSGI configurations)

Avatar

Avatar
Boost 1
Level 2
uwej31223422
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile

Avatar
Boost 1
Level 2
uwej31223422
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile
uwej31223422
Level 2

18-12-2020

We have the storage configurations from Tools>Communities>Storage Configuration, which is stored under /etc/socialconfig/srpc/defaultconfiguration, in our code in order to be able to simply deploy it on an AEM instance without the need to configure it manually via the UI on every instance.

 

The challenge is now that we need different configurations for different environments like author, publish, DEV, QA, PROD ...
Is there a way to achieve that, just like it can be done with the OSGI configurations?

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

246 likes

Total Posts

410 posts

Correct reply

105 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

246 likes

Total Posts

410 posts

Correct reply

105 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile
shelly-goel
MVP

19-12-2020

@uwej31223422 

 

One possible solution could be to configure those values in environment variables, commit the file (/etc/socialconfig/srpc/defaultconfiguration) with environment variable names in it and update your build scripts to inject the variable values in that file at build time and package post that.
It would be similar to envInject in Jenkins: https://plugins.jenkins.io/envinject/

I hope this helps.