Skip to content

Instantly share code, notes, and snippets.

@MaerF0x0
Forked from ianunruh/consul.sh
Last active April 4, 2016 21:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaerF0x0/75cf1818b39705c9e25ea0d842ba2be5 to your computer and use it in GitHub Desktop.
Save MaerF0x0/75cf1818b39705c9e25ea0d842ba2be5 to your computer and use it in GitHub Desktop.
Install Consul on Ubuntu 14.04
#!/bin/bash
apt-get install -y curl unzip
mkdir -p /var/lib/consul
mkdir -p /usr/share/consul
mkdir -p /etc/consul/conf.d
export CONSUL_VER=0.6.4
export CONSUL_FILE=consul_$(CONSUL_VER)_linux_amd64.zip
#eg: https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip
curl -OL https://releases.hashicorp.com/consul/$(CONSUL_VER)/$CONSUL_FILE
unzip $CONSUL_FILE
mv consul /usr/local/bin/consul
export CONSUL_WEB=consul_$(CONSUL_VER)_web_ui.zip
#https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_web_ui.zip
curl -OL https://releases.hashicorp.com/consul/$(CONSUL_VER)/$CONSUL_WEB
unzip $CONSUL_WEB
mv dist /usr/share/consul/ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment