From e2ec3b250ce953309be3eb8ac1d972131431147c Mon Sep 17 00:00:00 2001 From: "satsuu.masayuki" Date: Fri, 20 May 2022 01:14:42 +0000 Subject: [PATCH] Added install script about Tacker Issue-ID: SMO-65 Change-Id: Ib5cbbf70d979e28d1fee5ad2935f7a3342181551 Signed-off-by: Masayuki Satsu --- docs/tacker/installation-guide.rst | 11 ++++++++--- tacker/scripts/install.sh | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100755 tacker/scripts/install.sh 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 -- 2.16.6