18 lines
446 B
HCL
18 lines
446 B
HCL
# Expects secrets at specific paths in Vault KV v2 (mount point 'secret/')
|
|
|
|
data "vault_generic_secret" "proxmox" {
|
|
count = var.use_vault ? 1 : 0
|
|
path = "secret/infrastructure/proxmox"
|
|
}
|
|
|
|
data "vault_generic_secret" "opnsense" {
|
|
count = var.use_vault ? 1 : 0
|
|
path = "secret/infrastructure/opnsense"
|
|
}
|
|
|
|
data "vault_kv_secret_v2" "vm_creds" {
|
|
count = var.use_vault ? 1 : 0
|
|
mount = "secret"
|
|
name = "infrastructure/vm-credentials"
|
|
}
|