Skip to content

Commit

Permalink
Add stylus hash to machine and cluster names
Browse files Browse the repository at this point in the history
Signed-off-by: Oz Tiram <[email protected]>
  • Loading branch information
oz123 committed Jan 12, 2024
1 parent 98418b5 commit 3f37db0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export GOVC_FOLDER=<YOUR_FOLDER>

# vSphere vars
export HOST_SUFFIX=<YOUR_NAME> # required to ensure unique edge host IDs
export HOST_SUFFIX=<YOUR_NAME>-$(git -C ../stylus describe --always) # required to ensure unique edge host IDs
export ISO_FOLDER=<YOUR_FOLDER> e.g. "ISO/01-tyler"
export STYLUS_ISO="${ISO_FOLDER}/stylus-dev-amd64.iso"
export NIC_NAME=ens160
Expand All @@ -21,7 +22,7 @@ export PROJECT_UID=<YOUR_PROJECT_ID>
export EDGE_REGISTRATION_TOKEN=<YOUR_REGISTRATION_TOKEN>
export DOMAIN=dev.spectrocloud.com
export PUBLIC_PACK_REPO_UID=<YOUR_PUBLIC_PACK_REPO_UID> # this varies per Palette tenant, identify via Chrome inspector on Tenant Admin -> Pack Registries page
export CLUSTER_NAME=two-node
export CLUSTER_NAME=two-node-<YOU_NAME>-$(git -C ../stylus describe --always)
export CLUSTER_PROFILE_UID= # if left blank, a cluster profile will be created
export CLUSTER_VIP= # choose an unassigned VIP

Expand Down
7 changes: 5 additions & 2 deletions test/test-two-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ if [[ $sourced == 0 ]]; then
fi

declare -a vm_array=("2n1-$HOST_SUFFIX" "2n2-$HOST_SUFFIX")
export HOST_1="${vm_array[0]}-$HOST_SUFFIX"
export HOST_2="${vm_array[1]}-$HOST_SUFFIX"
export HOST_1="${vm_array[0]}"
export HOST_2="${vm_array[1]}"


echo ${vm_array[@]}

function create_canvos_args() {
cat <<EOF > .arg
Expand Down

0 comments on commit 3f37db0

Please sign in to comment.