Created
August 25, 2014 20:35
-
-
Save marcoceppi/93e925ea81d7d6fc2660 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| relids=`juju-run "relation-ids <peer-relation-name>"` | |
| for i in "$relids"; do | |
| units=`juju-run "relation-list $i" | |
| for unit in "$units"; do | |
| juju-run "relation-set -r $i key=val key1=val $unit" | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment