blob: 05d7ff19f510b075e4f153f9c4a873e59ed01f13 [file] [log] [blame]
#!/bin/bash
apt-get install -y curl unzip
mkdir -p /var/lib/consul
mkdir -p /usr/share/consul
mkdir -p /etc/consul/conf.d
consulVersion='0.9.2'
curl -OL https://releases.hashicorp.com/consul/${consulVersion}/consul_${consulVersion}_linux_amd64.zip
unzip consul_${consulVersion}_linux_amd64.zip
mv consul /usr/local/bin/consul