How to add storage directives to a bundle

A bundle can specify the storage directives used to satisfy a charm storage declaration. Exactly the same argument as used with juju deploy with --storage are supported.

For a charm with storage declaration in its metadata.yaml file:

storage:
  database:
    type: filesystem
    location:/var/lib/mysql
  logs:
    type: filesystem
    location:/var/log/mysql
  cache:
    type: filesystem

A bundle might look like:

applications:
  example-charm:
   charm: "cs:example-charm"
   storage:
     database: ebs,10G
     logs: rootfs,1G
     cache: tmpfs

Last updated 11 months ago.