summaryrefslogtreecommitdiffstats
path: root/ci/deploy.sh
diff options
context:
space:
mode:
authorMichal Skalski <mskalski@mirantis.com>2016-07-08 16:14:15 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-07-08 16:14:15 +0000
commit7c600840185d9b454c1995e35a9704db823fb5c6 (patch)
tree0ec5e3307add52ae90b08f60f7970d7b33341d5f /ci/deploy.sh
parentf59b4e0786f11e2799990beeaf0e4a148c3572af (diff)
parentdfc83244874060c4052bc3d29c256fa1bd52687d (diff)
Merge changes from topic 'multiple-nics-for-fuel-vm'
* changes: deploy: add support for multiple bridges virtual_fuel: prepare class to allow multiple bridges
Diffstat (limited to 'ci/deploy.sh')
-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