#!/bin/bash
set -e

BIND_IP=$1
JOIN_IP=$2
consul agent \
    -advertise=${BIND_IP} \
    -client=0.0.0.0 \
    -data-dir="/tmp/consul" \
    -join ${JOIN_IP} \
    -server \
    -ui

Add scripts for a node to join a cluster
Add scripts for a node to join a cluster
