summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@enea.com>2016-05-06 04:32:06 +0200
committerJosep Puigdemont <josep.puigdemont@enea.com>2016-06-17 10:24:58 +0200
commitdfc83244874060c4052bc3d29c256fa1bd52687d (patch)
tree0a157455a50ae31b8f62917e826de1153e3534e1 /ci
parent2a9e72d95200161ec27e8f199a76c6ec1f88bff1 (diff)
deploy: add support for multiple bridges
deploy.py: Some Fuel VMs may need more than one network interface. To be able to provide that, we now allow the user to specify the "-b" paramter (bridge) multiple times, creating a new NIC for each one of them. The NICs are created in the same order as they are given in the command line. There is no change in behavior from earlier versions, pxebr will still be the default bridge if none is specified in the command line. deploy.sh: To reflect the new capabilities of deploy.py, we introduce the possibility to specify -B more than once in deploy.sh, and honor that when calling deploy.py. We also make it possible to specify a comma separated list of bridges, as in: -B br1,br2. Change-Id: I1a0100f2cfe755ec6adfeedafb391c2357f46f51 Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index c7a1d1858..4e4586c2e 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -58,7 +58,10 @@ and provides a fairly simple mechanism to execute a deployment.
Input parameters to the build script is:
-b Base URI to the configuration directory (needs to be provided in a URI
style, it can be a local resource: file:// or a remote resource http(s)://)
--B PXE Bridge for booting of Fuel master, default is pxebr
+-B PXE Bridge for booting of Fuel master. It can be specified several times,
+ or as a comma separated list of bridges, or both: -B br1 -B br2,br3
+ One NIC connected to each specified bridge will be created in the Fuel VM,
+ in the same order as provided in the command line. The default is pxebr.
-d Dry-run - Produces deploy config files (config/dea.yaml and
config/dha.yaml), but does not execute deploy
-f Deploy on existing Fuel master
@@ -135,9 +138,9 @@ do
fi
;;
B)
- if [[ ${OPTARG} ]]; then
- PXE_BRIDGE="-b ${OPTARG}"
- fi
+ for bridge in ${OPTARG//,/ }; do
+ PXE_BRIDGE+=" -b $bridge"
+ done
;;
d)
DRY_RUN=1