A Juju charm demonstrating the usage of Actions
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
actions
.gitignore
README.md
actions.yaml
metadata.yaml
run-sample-fail.yaml
run-sample-ok.yaml

README.md

actions-demo

To use this Charm, simply:

mkdir trusty
git clone https://github.com/binary132/actions-demo trusty/actions-demo
juju deploy local:trusty/actions-demo

This Charm specifies two Actions: run and report. run executes an arbitrary script given in a params file such as:

# params.yaml
command: "echo \"hello world\""

Two samples have been given as run-sample-fail.yaml and run-sample-ok.yaml.


juju action defined
# ...

juju action do actions-demo/0 <action name> [--params run-sample-ok.yaml]
# ... <UUID>

juju action fetch <UUID>
# ... results