The Juju Charm Store
Juju includes a collection of what we call
Charms that let you deploy whatever
services you want in Juju. A collection of charms that are designed to work
together is called a
Bundle. Since charms and bundles are open and worked on
by the community, they represent a distilled set of best practices for deploying
these services. Both charms and bundles are included in what we collectively
call The Charm Store.
- The main project page is here: https://launchpad.net/charms
- There are useful tools for downloading, modifying, and contributing here: https://launchpad.net/charm-tools
- Here is the official tutorial for charm authors: https://juju.ubuntu.com/docs/write-charm.html
- Here is the official tutorial for bundle authors: https://juju.ubuntu.com/docs/charms-bundles.html
Charm Store Process
This process is designed to allow prospective developers to have their charms reviewed and updated in the Charm Store in a timely manner that ensures peer reviews and quality.
Submitting a new Charm
- Install juju and charm-tools.
- Create a repository, something like
mkdir -p ~/charms/precise, precise is the release code name for the release of Ubuntu you wish to target your charm at.
- If you haven't created your charm yet, you can use
charm create ubuntu-package-namewhich will fill in some basic metadata info for you. You can check to see if it already exists at http://jujucharms.com/. Also make sure to check the list of open charms to see if anybody is already working on a charm for the service you want to work on. Bugs which have had no activity by the assignee for more than 30 days are fair game and should be unassigned.
- Once your charm is working and tested with any compatible charms, make sure it passes
charm proof path/to/your/charm
bzr initin your charm's root directory
bzr addto add all files.
bzr ci -m'Initial charm'
bzr push lp:~your-launchpad-username/charms/precise/your-charms-name/trunk
- File a bug against charms at https://launchpad.net/charms/+filebug This is used to track the progress of your charm.
- Now you just need to attach your branch to the bug report, go to your code page, find your branch, and click on it. Then click on "Link a bug report", and put in the number of the bug you filed.
- Subscribe the
charmersteam by clicking "Subscribe someone else" on the right side of the launchpad page. This is important as it gets your charm in the review queue!
Your charm should then be looked at in a timely manner.
Submitting a fix to an existing Charm
- Grab the charm you want to fix, we'll use Nagios as an example:
bzr branch lp:charms/precise/nagios
- Modify it to meet your needs.
- Commit your fixes
bzr commit -m'Your changelog entry goes here'
bzr push lp:~your-launchpad-username/charms/precise/nagios/fixed-charms-name
- Submit a merge proposal by going to your branch's code page:
https://code.launchpad.net/~charmers/charms/precise/nagios/trunkand clicking "Propose for merging"
- In the merge proposal form select the charm's lp name:
- For the reviewer field put the
charmersteam, this will get your code into the review queue!
Submitting bundles to the Charm Store
Refer to the Bundles page for instructions on how to create bundles of charms and submit them to the store.
Inspired by Bazaar's Patch Pilot programme there will be patch pilots in #juju who can help you get your patch accepted. Check the topic to see who's on duty. Still need help? Contact us on the Juju mailing list ; if you're from an upstream project who wants more detailed help/tutoring, then contact Jorge Castro and we'd be more than happy to get a charm expert to help you out or help you run a Charm School.
- Please respect that these people might have a few other charms in their queue already.
- The package you have a question about might not necessarily be part of the patch pilot's area of expertise. They will still try to help you get your fix in and probably get you in touch with the 'right' people.