Skip to content

Instantly share code, notes, and snippets.

@freyes
Created March 12, 2015 15:48
Show Gist options
  • Save freyes/a4570465764cd5ebaf80 to your computer and use it in GitHub Desktop.
Save freyes/a4570465764cd5ebaf80 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
juju run --service percona-cluster "unit-get private-address"
juju run --service percona-cluster "relation-ids cluster"
RID=$(juju run --unit percona-cluster/0 "relation-ids cluster")
for i in 0 1 2; do
juju run --service percona-cluster "relation-get -r $RID private-address percona-cluster/$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment