Skip to content

Commit 1a15ad6

Browse files
authored
Update Vault CLI download link to use architecture (#514)
## Description The download command was downloading only the amd64 version, ## Type of Change - [ ] New module - [ ] New template - [x] Bug fix - [ ] Feature/enhancement - [ ] Documentation - [ ] Other ## Module Information <!-- Delete this section if not applicable --> **Path:** `registry/[namespace]/modules/[module-name]` **New version:** `v1.0.0` **Breaking change:** [ ] Yes [ ] No ## Template Information <!-- Delete this section if not applicable --> **Path:** `registry/[namespace]/templates/[template-name]` ## Testing & Validation - [ ] Tests pass (`bun test`) - [ ] Code formatted (`bun fmt`) - [ ] Changes tested locally ## Related Issues <!-- Link related issues or write "None" if not applicable -->
1 parent d648517 commit 1a15ad6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

registry/coder/modules/vault-token/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ variable "vault_token" {
1919
2020
module "vault" {
2121
source = "registry.coder.com/coder/vault-token/coder"
22-
version = "1.2.1"
22+
version = "1.2.2"
2323
agent_id = coder_agent.example.id
2424
vault_token = var.token # optional
2525
vault_addr = "https://vault.example.com"
@@ -73,7 +73,7 @@ variable "vault_token" {
7373
7474
module "vault" {
7575
source = "registry.coder.com/coder/vault-token/coder"
76-
version = "1.2.1"
76+
version = "1.2.2"
7777
agent_id = coder_agent.example.id
7878
vault_addr = "https://vault.example.com"
7979
vault_token = var.token

registry/coder/modules/vault-token/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ install() {
6868
else
6969
printf "Upgrading Vault CLI from version %s to %s ...\n\n" "$${CURRENT_VERSION}" "${INSTALL_VERSION}"
7070
fi
71-
fetch vault.zip "https://releases.hashicorp.com/vault/$${INSTALL_VERSION}/vault_$${INSTALL_VERSION}_linux_amd64.zip"
71+
fetch vault.zip "https://releases.hashicorp.com/vault/$${INSTALL_VERSION}/vault_$${INSTALL_VERSION}_linux_$${ARCH}.zip"
7272
if [ $? -ne 0 ]; then
7373
printf "Failed to download Vault.\n"
7474
return 1

0 commit comments

Comments
 (0)