Skip to content

Instantly share code, notes, and snippets.

### Get list of node ip's from consul
curl consul:8500/v1/catalog/nodes | jq -r ' .[] | select(.Node | contains("services")) | .TaggedAddresses.lan'

Keybase proof

I hereby claim:

  • I am motilevy on github.
  • I am motilevy (https://keybase.io/motilevy) on keybase.
  • I have a public key ASBQRnae623tUt8ic5m6ysK--J7lXkLRUX3tkERaQ1OZWgo

To claim this, I am signing this object:

#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'