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?
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Perfect, thanks all!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies