@@ -53,6 +53,8 @@ print_help() {
5353 echo " --mode The Environment to deploy management services (optional)"
5454 echo " --cleanup cleans up the cluster before deployment"
5555 echo " --is-single-node Deploy as single-node cluster (optional)"
56+ echo " --extra-cluster-args <value> Additional arguments to pass to cluster create command (optional)"
57+ echo " --extra-sn-args <value> Additional arguments to pass to storage-node add-node command (optional)"
5658 echo " --help Print this help message"
5759 exit 0
5860}
@@ -109,6 +111,9 @@ CLEAN_UP="false"
109111PROXY_URL=" http://34.1.171.127:5000"
110112INSECURE_URL=" 34.1.171.127:5000"
111113
114+ EXTRA_CLUSTER_ARGS=" "
115+ EXTRA_SN_ARGS=" "
116+
112117while [[ $# -gt 0 ]]; do
113118 arg=" $1 "
114119 case $arg in
@@ -263,6 +268,15 @@ while [[ $# -gt 0 ]]; do
263268 IS_SINGLE_NODE=" $2 "
264269 shift
265270 ;;
271+ --extra-cluster-args)
272+ EXTRA_CLUSTER_ARGS=" $2 "
273+ shift
274+ ;;
275+
276+ --extra-sn-args)
277+ EXTRA_SN_ARGS=" $2 "
278+ shift
279+ ;;
266280 --help)
267281 print_help
268282 ;;
@@ -396,6 +410,7 @@ bootstrap_cluster() {
396410 [[ -n " $MODE " ]] && command+=" --mode $MODE "
397411 [[ -n " $MODE " && " $MODE " == " kubernetes" ]] && command+=" --mgmt-ip $mgmt_ip "
398412 [[ -z " $MODE " || " $MODE " == " docker" ]] && command+=" --ifname eth0"
413+ [[ -n " $EXTRA_CLUSTER_ARGS " ]] && command+=" $EXTRA_CLUSTER_ARGS "
399414
400415 ssh_exec " $mgmt_ip " " $command "
401416}
@@ -497,6 +512,7 @@ add_storage_nodes() {
497512 [[ -n " $HA_JM_COUNT " ]] && add_cmd+=" --ha-jm-count $HA_JM_COUNT "
498513 [[ -n " $JM_PERCENT " ]] && add_cmd+=" --jm-percent $JM_PERCENT "
499514 [[ -n " $PARTITION_SIZE " ]] && add_cmd+=" --size-of-device $PARTITION_SIZE "
515+ [[ -n " $EXTRA_SN_ARGS " ]] && add_cmd+=" $EXTRA_SN_ARGS "
500516
501517 ssh_exec " ${mnodes[0]} " "
502518 for node in ${storage_private_ips} ; do
0 commit comments