Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created August 25, 2014 20:35
Show Gist options
  • Save marcoceppi/93e925ea81d7d6fc2660 to your computer and use it in GitHub Desktop.
Save marcoceppi/93e925ea81d7d6fc2660 to your computer and use it in GitHub Desktop.
#!/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