DevOps System Administrator Jahia 8.2

How to call the provisioning API through the Karaf console?

Question

How to call the provisioning API through the Karaf console?

Answer

In Karaf, the subshell provisioning exists: 

  • provisioning:execute: Execute a provisioning script
  • provisioning:operation: Execute a single provisioning

For example, you can execute the following command:

provisioning:execute file:///tmp/provisioning.yaml

where the file provisioning.yaml has this content: 

- executeScript: "file:///tmp/script.groovy"

You can find more information about the provisioning there.