Added install script about Tacker 54/8354/4 f-release
authorsatsuu.masayuki <satsuu.masayuki@jp.fujitsu.com>
Fri, 20 May 2022 01:14:42 +0000 (01:14 +0000)
committersatsuu.masayuki <satsuu.masayuki@jp.fujitsu.com>
Tue, 7 Jun 2022 03:00:33 +0000 (03:00 +0000)
Issue-ID: SMO-65
Change-Id: Ib5cbbf70d979e28d1fee5ad2935f7a3342181551
Signed-off-by: Masayuki Satsu <satsuu.masayuki@jp.fujitsu.com>
docs/tacker/installation-guide.rst
tacker/scripts/install.sh [new file with mode: 0755]

index 08231ce..cde1204 100644 (file)
@@ -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 (executable)
index 0000000..0632eaf
--- /dev/null
@@ -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