Expand my Community achievements bar.

SOLVED

Update OSGI via API?

Avatar

Level 5

We are looking to automate as much of our deployment process as possible to remove the many human errors that have made deployment nights sleepless events for the dev team! Is there documentation anywhere about how we can update OSGI config without using the GUI eg via command line, curl command etc? We want to script any and all changes made to OSGI, commit them into version control and run them via Jenkins for example, removing as much human interaction.

E.g. We have created a new OSGI Service that requires config via Felix to setup some parameters, currently the deployment notes will tell Ops to log on to felix, go to the config tab, find the bundle and type in x,y,z. So how can I make that config change via a script?

1 Accepted Solution

Avatar

Correct answer by
Administrator

Adding reference :- http://www.aemcq5tutorials.com/tutorials/custom-osgi-configuration-aem/

//This will cover Create Custom OSGI Configuration in AEM :-

How to Set and Get OSGI configuration values using Text Field.

How to Set and Get OSGI configuration values using Drop Down List.

How to Set and Get OSGI configuration values using Check Box.

How to Set and Get OSGI configuration values using Multi Field.

 

~kautuk



Kautuk Sahni

View solution in original post

4 Replies

Avatar

Level 10

See this AEM article that talks about OSGi configuration values: 

https://helpx.adobe.com/experience-manager/using/osgi_config.html

"So how can I make that config change via a script?"

Config values are only nodes/props in the JCR. If you want to automate them - use the JCR API to programmatially create the nodes/props. That should be straightforward when using this API.  

Avatar

Employee Advisor

Check the documentation at [1], it explains how you can package your configuration and just deploy it to AEM like any other content package.

Jörg

[1] https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/configuring-osgi.html#Adding%20a%20New%20C...

Avatar

Correct answer by
Administrator

Adding reference :- http://www.aemcq5tutorials.com/tutorials/custom-osgi-configuration-aem/

//This will cover Create Custom OSGI Configuration in AEM :-

How to Set and Get OSGI configuration values using Text Field.

How to Set and Get OSGI configuration values using Drop Down List.

How to Set and Get OSGI configuration values using Check Box.

How to Set and Get OSGI configuration values using Multi Field.

 

~kautuk



Kautuk Sahni