feat: 🎸 Download latest HCP binary for worker config commands (#1680)

✅ Closes: ICU-7265
This commit is contained in:
Zhihe Li authored and GitHub committed 2023-05-04 15:14:00 -04:00
1 parent ffd36003e0
commit 3d1ac0a4e0
2 files changed
+24 -6

No files matched your search

@@ -118,8 +118,10 @@ ${listenerText}
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" ;\\
sudo apt-get update && sudo apt-get install boundary ;\\
boundary server -config="${configPath}/pki-worker.hcl"`;
const hcpContent = `wget -q https://releases.hashicorp.com/boundary-worker/0.12.0+hcp/boundary-worker_0.12.0+hcp_linux_amd64.zip ;\\
sudo apt-get update && sudo apt-get install unzip ;\\
const hcpContent = `sudo apt-get update && sudo apt-get install jq unzip ;\\
wget -q "$(curl -fsSL "https://api.releases.hashicorp.com/v1/releases/boundary-worker/latest?license_class=hcp" \
| jq -r '.builds[] | select(.arch == "amd64" and .os == "linux") | .url')" ;\\
unzip *.zip ;\\
./boundary-worker server -config="${configPath}/pki-worker.hcl"`;