How to integrate a local charm into a bundle

To integrate a local charm into a bundle, you will need a local bundle file, say bundle.yaml, where the charm field points to the directory of the charm in question. Here is an example:

series: xenial
    charm: "/home/ubuntu/charms/mysql"
    num_units: 1
    constraints: mem=2G cores=4

The bundle can then be deployed by using the file as the argument instead of a bundle name:

juju deploy ./bundle.yaml

Last updated 2 years ago. Help improve this document in the forum.