Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to deploy Juju services Programmatically . Is there any API available to do the same?

share|improve this question

1 Answer 1

Yes there is a websocket-based Juju API. You can use it from Go directly (see http://godoc.org/launchpad.net/juju-core/state/api), or you can use Juju Deployer Python wrapper around the API. It supports stack-like simple and complex scripted deployments.

The best way will be to get the source locally with bzr branch lp:juju-deployer and then see the README file with instructions how to use it. You might build an up-to-date Sphinx documentation by going into the doc/ directory and running make singlehtml (or your preferred format - run make to see a list of supported targets).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.