Skip to content

Commit 128dd35

Browse files
committed
update from code review
1 parent db6eeed commit 128dd35

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

applications/wg-easy/Taskfile.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,10 @@ tasks:
568568
cmx-vm-install:
569569
desc: Download and install the app as Embedded Cluster on CMX VM
570570
silent: false
571+
requires:
572+
vars: [REPLICATED_LICENSE_ID]
571573
vars:
572574
CHANNEL: '{{.CHANNEL | default "Unstable"}}'
573-
AUTH_TOKEN: '{{.AUTH_TOKEN | default "2usDXzovcJNcpn54yS5tFQVNvCq"}}'
574575
SKIP_INSTALL: '{{.SKIP_INSTALL | default "false"}}'
575576
ADMIN_CONSOLE_PASSWORD:
576577
sh: uuidgen | cut -c1-13
@@ -587,6 +588,12 @@ tasks:
587588
exit 1
588589
fi
589590
591+
echo "Check if license ID is set..."
592+
if [ -z "{{.REPLICATED_LICENSE_ID}}" ]; then
593+
echo "REPLICATED_LICENSE_ID is not set. Set it to your DEV Customer License ID. E.g. task cmx-vm-install REPLICATED_LICENSE_ID=1234567890"
594+
exit 1
595+
fi
596+
590597
echo "SSH into the VM and download the app binary..."
591598
SSH_BASE_CMD="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
592599
if [ -n "{{.CMX_VM_PUBLIC_KEY}}" ]; then
@@ -598,7 +605,7 @@ tasks:
598605
$VM_SSH_CMD << 'EOF'
599606
set -e
600607
echo 'Downloading {{.APP_NAME}} installer...'
601-
curl -f 'https://replicated.app/embedded/{{.APP_NAME}}/{{.CHANNEL}}' -H 'Authorization: {{.AUTH_TOKEN}}' -o {{.APP_NAME}}-{{.CHANNEL}}.tgz
608+
curl -f 'https://replicated.app/embedded/{{.APP_NAME}}/{{.CHANNEL}}' -H 'Authorization: {{.REPLICATED_LICENSE_ID}}' -o {{.APP_NAME}}-{{.CHANNEL}}.tgz
602609

603610
echo 'Extracting installer...'
604611
tar -xvzf {{.APP_NAME}}-{{.CHANNEL}}.tgz

0 commit comments

Comments
 (0)