Cheatography
https://cheatography.com
JuJu CLI Commands - based on https://pastebin.ubuntu.com/6849895/ - updated to version 2.x
Setup
|
adds an cloud |
juju add-credentials $cloudname
|
adds login credentials to cloud |
juju bootstrap $cloudname $controllername
|
bootstrap an juju controller for juju cloud |
|
open this in another terminal or tab, so you can see what juju is doing while you type other commands) |
juju debug-log --include unit-$servicename-machine#
|
just shows debug log for single unit |
Using
juju add-model $modelname
|
adds an model |
juju deploy $application $alias
|
deploy a service, alias is optional if you want to name it something. If you use aliases you need to refer to the service via the alias from then on: juju deploy mediawiki myawesomewiki
|
juju add-machine $machinename
|
add a machine |
juju add-unit $servicename
|
add a unit |
juju add-unit -n 10 $servicename
|
add 10 units. |
|
shows what's going on |
juju status $applicationname
|
shows you what's going for a particular server |
juju ssh $applicationname/machine#
|
ssh to a unit, get the # from juju status |
|
ssh to a machine number or lxd container ( machine#/lxd/lxd#) |
Bundle
juju quickstart bundle:~abentley/wiki-bundle/1/wiki
|
Get the bundle address from jujucharms.com |
Relations
juju add-relation $service1 $service2
|
relate two services |
juju remove-relation $service1 $service2
|
unrelate 2 services |
Destroy / Remove Stuff
juju destroy-controller $controller_name
|
Destroy the Juju Controller |
juju destroy-model $model_name
|
Destroy an juju model |
juju remove-application $servicename
|
removes an application |
juju remove-unit $applicationname/unit#
|
removes an unit |
juju remove-machine machine#
|
removes an machine |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment