-
-
Save MaerF0x0/75cf1818b39705c9e25ea0d842ba2be5 to your computer and use it in GitHub Desktop.
Install Consul on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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