From: satsuu.masayuki Date: Fri, 20 May 2022 01:14:42 +0000 (+0000) Subject: Added install script about Tacker X-Git-Tag: g-release~7 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Ff-release;p=smo%2Fo2.git Added install script about Tacker Issue-ID: SMO-65 Change-Id: Ib5cbbf70d979e28d1fee5ad2935f7a3342181551 Signed-off-by: Masayuki Satsu --- diff --git a/docs/tacker/installation-guide.rst b/docs/tacker/installation-guide.rst index 08231ce..cde1204 100644 --- a/docs/tacker/installation-guide.rst +++ b/docs/tacker/installation-guide.rst @@ -84,9 +84,14 @@ This section describes the installation of the Tacker installation on the refere Installation Using Install Script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -(T.B.D. We will provide install script in smo/o2 repository.) - +Usage: ./install.sh [HOST_IP] + +This script installs the Tacker via Devstack(Standalone mode). +It uses the latest repositories(Devstack and Tacker). +If you want to use other version, you have to change the URL. +e.g. +git clone https://opendev.org/openstack-dev/devstack -b stable/yoga +wget https://opendev.org/openstack/tacker/raw/branch/stable/yoga/devstack/local.conf.standalone Manual Installation ~~~~~~~~~~~~~~~~~~~ diff --git a/tacker/scripts/install.sh b/tacker/scripts/install.sh new file mode 100755 index 0000000..0632eaf --- /dev/null +++ b/tacker/scripts/install.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +if [[ `whoami` != "stack" ]] +then + echo "You are not stack user." + echo https://docs.openstack.org/devstack/latest/#add-stack-user-optional + exit 1 +fi + +if [ $# != 1 ]; then + echo Parameter error: usage: ./install.sh [HOST_IP] + exit 1 +fi + +git clone https://git.openstack.org/openstack-dev/devstack +cd devstack + +wget https://opendev.org/openstack/tacker/raw/branch/master/devstack/local.conf.standalone +sed -e "s/127.0.0.1/$1/g" local.conf.standalone > local.conf + +./stack.sh