|
|
@ -1,4 +1,4 @@ |
|
|
|
|
|
|
|
#!/bin/bash |
|
|
|
# eqx-cluster-create |
|
|
|
# |
|
|
|
# Create a cluster of bare metal on Equinix. |
|
|
@ -28,7 +28,8 @@ EQXSPOTOVER=".02" |
|
|
|
|
|
|
|
# Probably leave these variables alone |
|
|
|
# Set max price at current spot plus EQXSPOTOVER from above |
|
|
|
EQXSPOT="`eqx-market-spot-prices`" |
|
|
|
# XXX spot device/facility is hard coded in other script |
|
|
|
EQXSPOT="`eqx-market-spot-price`" |
|
|
|
EQXSPOTMAX=`echo "$EQXSPOT + $EQXSPOTOVER" | bc -l | xargs printf "%1.2f"` |
|
|
|
EQXPROJECT="$1" |
|
|
|
if [[ $1 == "" ]] |
|
|
|