How do I deploy a specific revision of a charm?

Solution 1:

First off, you need to find out which revision you need. The revision of the charm is completely different from the bzr revision. So for https://jujucharms.com/precise/mongodb/

enter image description here

So the charm revision is 26. Now let's say you think something broke in 26, and you want to try version 25 or earlier.

juju deploy cs:mongodb-25

will give you that revision of the charm. However it is always a good idea to be explicit about the series as well to ensure repeatability:

juju deploy cs:precise/mongodb-25