khenaidoo | f2dd204 | 2017-08-18 15:51:46 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | apt-get install -y curl unzip | ||||
3 | |||||
4 | mkdir -p /var/lib/consul | ||||
5 | mkdir -p /usr/share/consul | ||||
6 | mkdir -p /etc/consul/conf.d | ||||
7 | |||||
8 | consulVersion='0.9.2' | ||||
9 | |||||
10 | curl -OL https://releases.hashicorp.com/consul/${consulVersion}/consul_${consulVersion}_linux_amd64.zip | ||||
11 | unzip consul_${consulVersion}_linux_amd64.zip | ||||
12 | mv consul /usr/local/bin/consul |