If you often deal with cross-model relations (CMRs), but not often enough to be able to blindly type the sequence of commands you need to type, this is for you.
If you deal with CMRs and can never remember when you need to
offer something, which is not
expose, and when you need to
consume… this is also for you.
This is a simple utility to guide you through selecting a CMR through all possible alternatives and activating it.
- Switch to model
jhack pull-cmr cos
The command shows all the CMRs you can activate, in the following format: local app, interface name, remote app. The default choice is the first: to relate trfk (local Traefik app) to cos-lite’s
alertmanager app via
ingress (the names of the endpoints are not shown).
4.1and press enter to relate local traefik and remote prometheus via
This command is available on
latest/candidate at the time of writing.
- Add an ‘educational’ option to output the juju commands used to setup the relation, so that you know what’s happening on the background.
- Add a ‘remove’ feature to destroy and clean up all traces of a CMR (