mirror of https://github.com/hashicorp/consul
commit
13bfad9e1b
|
@ -53,8 +53,8 @@
|
||||||
"sudo mkdir /etc/consul.d",
|
"sudo mkdir /etc/consul.d",
|
||||||
"sudo apt-get update",
|
"sudo apt-get update",
|
||||||
"sudo apt-get install unzip make",
|
"sudo apt-get install unzip make",
|
||||||
"wget https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip",
|
"wget https://releases.hashicorp.com/consul/0.5.2/consul_0.5.2_linux_amd64.zip",
|
||||||
"unzip 0.4.1_linux_amd64.zip",
|
"unzip 0.5.2_linux_amd64.zip",
|
||||||
"sudo mv consul /usr/local/bin/consul",
|
"sudo mv consul /usr/local/bin/consul",
|
||||||
"chmod +x /usr/local/bin/consul"
|
"chmod +x /usr/local/bin/consul"
|
||||||
]
|
]
|
||||||
|
|
|
@ -47,8 +47,8 @@
|
||||||
"mkdir /etc/consul.d",
|
"mkdir /etc/consul.d",
|
||||||
"apt-get update",
|
"apt-get update",
|
||||||
"apt-get install unzip make",
|
"apt-get install unzip make",
|
||||||
"wget https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip",
|
"wget https://releases.hashicorp.com/consul/0.5.2/consul_0.5.2_linux_amd64.zip",
|
||||||
"unzip 0.4.1_linux_amd64.zip",
|
"unzip 0.5.2_linux_amd64.zip",
|
||||||
"mv consul /usr/local/bin/consul",
|
"mv consul /usr/local/bin/consul",
|
||||||
"chmod +x /usr/local/bin/consul"
|
"chmod +x /usr/local/bin/consul"
|
||||||
]
|
]
|
||||||
|
|
|
@ -4,13 +4,16 @@ set -e
|
||||||
# Read the address to join from the file we provisioned
|
# Read the address to join from the file we provisioned
|
||||||
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
||||||
|
|
||||||
|
# consul version to install
|
||||||
|
CONSUL_VERSION=0.5.2
|
||||||
|
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
yum update -y
|
yum update -y
|
||||||
yum install -y unzip wget
|
yum install -y unzip wget
|
||||||
|
|
||||||
echo "Fetching Consul..."
|
echo "Fetching Consul..."
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip -O consul.zip
|
wget "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip" -O consul.zip
|
||||||
|
|
||||||
echo "Installing Consul..."
|
echo "Installing Consul..."
|
||||||
unzip consul.zip >/dev/null
|
unzip consul.zip >/dev/null
|
||||||
|
|
|
@ -4,13 +4,16 @@ set -e
|
||||||
# Read the address to join from the file we provisioned
|
# Read the address to join from the file we provisioned
|
||||||
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
||||||
|
|
||||||
|
# consul version to install
|
||||||
|
CONSUL_VERSION=0.5.2
|
||||||
|
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
sudo yum update -y
|
sudo yum update -y
|
||||||
sudo yum install -y unzip wget
|
sudo yum install -y unzip wget
|
||||||
|
|
||||||
echo "Fetching Consul..."
|
echo "Fetching Consul..."
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip -O consul.zip
|
wget "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip" -O consul.zip
|
||||||
|
|
||||||
echo "Installing Consul..."
|
echo "Installing Consul..."
|
||||||
unzip consul.zip >/dev/null
|
unzip consul.zip >/dev/null
|
||||||
|
|
|
@ -4,13 +4,16 @@ set -e
|
||||||
# Read the address to join from the file we provisioned
|
# Read the address to join from the file we provisioned
|
||||||
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
||||||
|
|
||||||
|
# consul version to install
|
||||||
|
CONSUL_VERSION=0.5.2
|
||||||
|
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y unzip
|
sudo apt-get install -y unzip
|
||||||
|
|
||||||
echo "Fetching Consul..."
|
echo "Fetching Consul..."
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip -O consul.zip
|
wget "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip" -O consul.zip
|
||||||
|
|
||||||
echo "Installing Consul..."
|
echo "Installing Consul..."
|
||||||
unzip consul.zip >/dev/null
|
unzip consul.zip >/dev/null
|
||||||
|
|
|
@ -4,6 +4,9 @@ set -e
|
||||||
# Read the address to join from the file we provisioned
|
# Read the address to join from the file we provisioned
|
||||||
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
JOIN_ADDRS=$(cat /tmp/consul-server-addr | tr -d '\n')
|
||||||
|
|
||||||
|
# consul version to install
|
||||||
|
CONSUL_VERSION=0.5.2
|
||||||
|
|
||||||
sudo sh -c 'echo "127.0.0.1 consul-node-'$(cat /tmp/consul-server-index)'" >> /etc/hosts'
|
sudo sh -c 'echo "127.0.0.1 consul-node-'$(cat /tmp/consul-server-index)'" >> /etc/hosts'
|
||||||
|
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
|
@ -12,7 +15,7 @@ sudo apt-get install -y unzip
|
||||||
|
|
||||||
echo "Fetching Consul..."
|
echo "Fetching Consul..."
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip -O consul.zip
|
wget "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip" -O consul.zip
|
||||||
|
|
||||||
echo "Installing Consul..."
|
echo "Installing Consul..."
|
||||||
unzip consul.zip >/dev/null
|
unzip consul.zip >/dev/null
|
||||||
|
|
Loading…
Reference in New Issue