From d28b637d972aa600ed15ef437e4cb59c53e0ca5e Mon Sep 17 00:00:00 2001 From: Valerii Ponomarov Date: Sat, 21 Dec 2019 00:09:11 +0530 Subject: Delete 'deployment' dir as obsolete and not supported 'deployment' directory contains obsolete and unsupported approach for deploying OpenShift and GlusterFS storage. Separate deployment approach has already been used for significant amount of time. So, delete local 'directory' as it makes no sense to keep it. Moreover, it may be confusing for people who may try it out and see unpredictable errors. Change-Id: Ibf353500bab59853f597304cb9c1990102c000ef --- deployment/scripts/install_openshift_ansible.sh | 35 ------------------------- deployment/scripts/install_yedit_for_ansible.sh | 17 ------------ 2 files changed, 52 deletions(-) delete mode 100755 deployment/scripts/install_openshift_ansible.sh delete mode 100755 deployment/scripts/install_yedit_for_ansible.sh (limited to 'deployment/scripts') diff --git a/deployment/scripts/install_openshift_ansible.sh b/deployment/scripts/install_openshift_ansible.sh deleted file mode 100755 index c258587a..00000000 --- a/deployment/scripts/install_openshift_ansible.sh +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/bash -# -# List of expected input args: -# - $1 is an env dir, i.e '/home/username/.../.tox/ocp3.6' -# - $2 is a tag or PR to checkout from, -# 1) TAG -> i.e. 'openshift-ansible-3.6.173.0.96-1' for OCP v3.6 -# See list of tags here: https://github.com/openshift/openshift-ansible/tags -# 2) PR -> 'pull/12345/head'. Where '12345' is ID of a PR. -# See list of PRs here: https://github.com/openshift/openshift-ansible/pulls -# Note that PR is checked out, not cherry-picked. - -OPENSHIFT_ANSIBLE_GIT_URL='git://github.com/openshift/openshift-ansible.git' -TARGET_DIR=$1/usr/share/ansible/openshift-ansible -TAG=$2 - -if [ -z "$TAG" ]; then - # NOTE(vponomar): get latest tag by 3.X branch - TAG=$(git ls-remote --tags $OPENSHIFT_ANSIBLE_GIT_URL \ - "refs/tags/openshift-ansible-$(echo $1 | grep -oE '[^tox\/ocp]+$').*" \ - | grep -v "\{\}" | sort -t / -k 3 -V | tail -n 1 | awk '{print $2}' ) - echo "Custom Git tag hasn't been specified, using latest Git tag '$TAG'" -else - echo "Using custom Git tag '$TAG'" -fi - -TAG=${TAG/refs\/tags\//} - -if [[ ! -d $TARGET_DIR ]]; then - mkdir -p $TARGET_DIR - git clone --single-branch $OPENSHIFT_ANSIBLE_GIT_URL $TARGET_DIR -fi - -cd $TARGET_DIR -git fetch origin $TAG -git reset --hard FETCH_HEAD diff --git a/deployment/scripts/install_yedit_for_ansible.sh b/deployment/scripts/install_yedit_for_ansible.sh deleted file mode 100755 index ac4b0c44..00000000 --- a/deployment/scripts/install_yedit_for_ansible.sh +++ /dev/null @@ -1,17 +0,0 @@ -#! /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