Files
tooz/setup-etcd-env.sh
Takashi Kajinami 90d0a61b08 Bump etcd to 3.5.x
The etcd project maintains release branches for the current version
and pevious release[1]. Because 3.6.0 was already released, 3.4.x is
no longer supported.
Bump it to the latest bug fix release of 3.5.x .

This follows the change earlier made in tempest.

[1] https://etcd.io/docs/v3.6/op-guide/versioning/

Depends-on: https://review.opendev.org/c/openstack/devstack/+/952755
Change-Id: I6bacfea93ef8bc0f007b1d9ea5f1b2898e70fb80
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-13 07:14:45 +00:00

32 lines
742 B
Bash
Executable File

#!/bin/bash
set -eux
if [ -z "$(which etcd)" ]; then
ETCD_VERSION=${ETCD_VERSION:-3.5.21}
case `uname -s` in
Darwin)
OS=darwin
SUFFIX=zip
;;
Linux)
OS=linux
SUFFIX=tar.gz
;;
*)
echo "Unsupported OS"
exit 1
esac
case `uname -m` in
x86_64)
MACHINE=amd64
;;
*)
echo "Unsupported machine"
exit 1
esac
TARBALL_NAME=etcd-v${ETCD_VERSION}-$OS-$MACHINE
test ! -d "$TARBALL_NAME" && curl -L https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/${TARBALL_NAME}.${SUFFIX} | tar xz
export PATH=$PATH:$TARBALL_NAME
fi
$*