Created
March 12, 2015 15:48
-
-
Save freyes/a4570465764cd5ebaf80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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