ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
41
terraform/internal/vault/providers.tf
Normal file
41
terraform/internal/vault/providers.tf
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
terraform {
|
||||
required_version = "< 2.0.0"
|
||||
backend "pg" {
|
||||
conn_str = "postgres://10.234.158.153:5432/tf_state?sslmode=require"
|
||||
schema_name = "internal_vault"
|
||||
}
|
||||
|
||||
required_providers {
|
||||
vault = {
|
||||
source = "hashicorp/vault"
|
||||
version = "~> 5.0"
|
||||
}
|
||||
random = {
|
||||
source = "hashicorp/random"
|
||||
version = "~> 3.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# VAULT_ADDR and VAULT_TOKEN are read from the environment.
|
||||
provider "vault" {}
|
||||
|
||||
provider "random" {}
|
||||
|
||||
variable "cluster_domain" {
|
||||
description = "Internal cluster domain suffix used for Tier I TLS certificates."
|
||||
type = string
|
||||
default = "cluster.local"
|
||||
}
|
||||
|
||||
variable "internal_domain" {
|
||||
description = "Public domain used for Tier I services (e.g. example.com). Vault PKI will allow this as a SAN."
|
||||
type = string
|
||||
default = "quorate.internal"
|
||||
}
|
||||
|
||||
variable "k8s_host" {
|
||||
description = "Kubernetes API server URL for the Vault Kubernetes auth method."
|
||||
type = string
|
||||
default = "https://kubernetes.default.svc"
|
||||
}
|
||||
Loading…
Reference in a new issue