From 25fcd9c5aa4c360eff19ef08fc4e2bdff6147ffd Mon Sep 17 00:00:00 2001 From: Valerii Ponomarov Date: Thu, 7 Feb 2019 02:08:23 +0530 Subject: Add end-to-end OCP 'deployment' functionality Add end-to-end deployment tool of OpenShift and OpenShift Container Storage on top of VMWare. Added code is modified version of the 'reference-architecture/vmware-ansible' dir from the following repo: https://github.com/vponomaryov/openshift-ansible-contrib Read 'deployment/README.rst' file for more details about the deployment tool. Change-Id: Ic96f252ff786cc1ecf24d27f0ec47e324131e41b --- deployment/scripts/install_yedit_for_ansible.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 deployment/scripts/install_yedit_for_ansible.sh (limited to 'deployment/scripts/install_yedit_for_ansible.sh') diff --git a/deployment/scripts/install_yedit_for_ansible.sh b/deployment/scripts/install_yedit_for_ansible.sh new file mode 100755 index 00000000..ac4b0c44 --- /dev/null +++ b/deployment/scripts/install_yedit_for_ansible.sh @@ -0,0 +1,17 @@ +#! /bin/bash +# +# List of expected input args: +# - $1 is an env dir, i.e '/home/username/.../.tox/ocp3.6' +# - $2 is a tag or branch name to checkout from. + +YEDIT_GIT_URL='git://github.com/vponomaryov/yedit.git' +TARGET_DIR=$1/src/yedit + +if [[ ! -d $TARGET_DIR ]]; then + mkdir -p $TARGET_DIR + git clone $YEDIT_GIT_URL --single-branch --branch $2 $TARGET_DIR +else + cd $TARGET_DIR + git fetch -t --all + git reset --hard $2 +fi -- cgit