fix(vault-jwt): fix vault CLI installation (#311)
This commit is contained in:
committed by
GitHub
parent
4dcab99cb0
commit
acd5edffe7
@@ -15,7 +15,7 @@ This module lets you authenticate with [Hashicorp Vault](https://www.vaultprojec
|
|||||||
```tf
|
```tf
|
||||||
module "vault" {
|
module "vault" {
|
||||||
source = "registry.coder.com/modules/vault-jwt/coder"
|
source = "registry.coder.com/modules/vault-jwt/coder"
|
||||||
version = "1.0.19"
|
version = "1.0.20"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
vault_addr = "https://vault.example.com"
|
vault_addr = "https://vault.example.com"
|
||||||
vault_jwt_role = "coder" # The Vault role to use for authentication
|
vault_jwt_role = "coder" # The Vault role to use for authentication
|
||||||
@@ -41,7 +41,7 @@ curl -H "X-Vault-Token: ${VAULT_TOKEN}" -X GET "${VAULT_ADDR}/v1/coder/secrets/d
|
|||||||
```tf
|
```tf
|
||||||
module "vault" {
|
module "vault" {
|
||||||
source = "registry.coder.com/modules/vault-jwt/coder"
|
source = "registry.coder.com/modules/vault-jwt/coder"
|
||||||
version = "1.0.19"
|
version = "1.0.20"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
vault_addr = "https://vault.example.com"
|
vault_addr = "https://vault.example.com"
|
||||||
vault_jwt_auth_path = "oidc"
|
vault_jwt_auth_path = "oidc"
|
||||||
@@ -56,7 +56,7 @@ data "coder_workspace_owner" "me" {}
|
|||||||
|
|
||||||
module "vault" {
|
module "vault" {
|
||||||
source = "registry.coder.com/modules/vault-jwt/coder"
|
source = "registry.coder.com/modules/vault-jwt/coder"
|
||||||
version = "1.0.19"
|
version = "1.0.20"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
vault_addr = "https://vault.example.com"
|
vault_addr = "https://vault.example.com"
|
||||||
vault_jwt_role = data.coder_workspace_owner.me.groups[0]
|
vault_jwt_role = data.coder_workspace_owner.me.groups[0]
|
||||||
@@ -68,7 +68,7 @@ module "vault" {
|
|||||||
```tf
|
```tf
|
||||||
module "vault" {
|
module "vault" {
|
||||||
source = "registry.coder.com/modules/vault-jwt/coder"
|
source = "registry.coder.com/modules/vault-jwt/coder"
|
||||||
version = "1.0.19"
|
version = "1.0.20"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
vault_addr = "https://vault.example.com"
|
vault_addr = "https://vault.example.com"
|
||||||
vault_jwt_role = "coder" # The Vault role to use for authentication
|
vault_jwt_role = "coder" # The Vault role to use for authentication
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ install() {
|
|||||||
printf "Failed to determine the latest Vault version.\n"
|
printf "Failed to determine the latest Vault version.\n"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
VAULT_CLI_VERSION=$${VAULT_CLI_VERSION}
|
VAULT_CLI_VERSION=$${LATEST_VERSION}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if the vault CLI is installed and has the correct version
|
# Check if the vault CLI is installed and has the correct version
|
||||||
|
|||||||
Reference in New Issue
Block a user