Skip to content

Instantly share code, notes, and snippets.

@dvliman
Last active February 9, 2017 20:59
Show Gist options
  • Save dvliman/9a98215bd2a8e16fbafbef6a86f8034c to your computer and use it in GitHub Desktop.
Save dvliman/9a98215bd2a8e16fbafbef6a86f8034c to your computer and use it in GitHub Desktop.
dliman@qa-roles-i-40f58a56:~$ cat /usr/local/bin/roles
#!/bin/bash
# Shell connect
set -e
NAME=`uuidgen | sed -e 's/-//g'`
COOKIE=`grep cookie /opt/roles/etc/vm.args| cut -d' ' -f2`
CLUSTER_NAME=`grep name /opt/roles/etc/vm.args | awk '{print $2}'`
cd /opt/roles/erts-*/bin
./erl -hidden -name $NAME -remsh $CLUSTER_NAME -setcookie $COOKIE -pa deps/*/ebin ebin
@dvliman
Copy link
Author

dvliman commented Feb 9, 2017

cluster name: [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment