Files
factory/postgres/iac/providers.tf

37 lines
680 B
HCL

terraform {
required_providers {
postgresql = {
source = "cyrilgdn/postgresql"
version = "1.24.0"
}
vault = {
source = "vault"
version = "4.4.0"
}
}
}
variable "POSTGRES_USERNAME" {
type = string
sensitive = true
}
variable "POSTGRES_PASSWORD" {
type = string
sensitive = true
}
provider "postgresql" {
host = "192.168.1.202"
username = var.POSTGRES_USERNAME
password = var.POSTGRES_PASSWORD
sslmode = "disable"
superuser = true
}
provider vault {
address = "https://vault.arcodange.lab"
auth_login_jwt { # TERRAFORM_VAULT_AUTH_JWT environment variable
mount = "gitea_jwt"
role = "gitea_cicd"
}
}