#
SCRIPT_PATH=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
DEPLOY_DIR=$(cd "${SCRIPT_PATH}/../mcp/scripts"; pwd)
+DEPLOY_TYPE='baremetal'
OPNFV_BRIDGES=('pxe' 'mgmt' 'internal' 'public')
URI_REGEXP='(file|https?|ftp)://.*'
;;
p)
TARGET_POD=${OPTARG}
+ if [[ "${TARGET_POD}" =~ "virtual" ]]; then
+ DEPLOY_TYPE='virtual'
+ fi
;;
s)
DEPLOY_SCENARIO=${OPTARG}
git make rsync genisoimage curl virt-install qemu-kvm
# Check scenario file existence
-if [[ ! -f ../config/${DEPLOY_SCENARIO}.yaml ]]; then
+if [[ ! -f ../config/scenario/${DEPLOY_TYPE}/${DEPLOY_SCENARIO}.yaml ]]; then
notify "[WARN] ${DEPLOY_SCENARIO}.yaml not found! \
Setting simplest scenario (os-nosdn-nofeature-noha)\n" 3
DEPLOY_SCENARIO='os-nosdn-nofeature-noha'
# Get required infra deployment data
source lib.sh
-eval "$(parse_yaml "../config/defaults.yaml")"
-eval "$(parse_yaml "../config/${DEPLOY_SCENARIO}.yaml")"
+eval "$(parse_yaml "../config/scenario/${DEPLOY_TYPE}/defaults.yaml")"
+eval "$(parse_yaml "../config/scenario/${DEPLOY_TYPE}/${DEPLOY_SCENARIO}.yaml")"
export CLUSTER_DOMAIN=${cluster_domain}
--- /dev/null
+##############################################################################
+# Copyright (c) 2017 Mirantis Inc., Enea AB and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+Abstract:
+---------
+This directory contains configuration files for different OPNFV deployment
+feature scenarios used by Fuel@OPNFV, e.g.:
+- High availability configuration;
+- Type of SDN controller to be deployed;
+- OPNFV collaboration project features to be deployed;
+- Provisioning of any other sevices;
+- POD configuration (baremetal, virtual);
+
+NOTES:
+------
+This directory is highly likely to change and/or be replaced/complemented
+by the new PDF (Pod Descriptor File) info in securedlab OPNFV git repo.