Remove provider configs from modules
This commit is contained in:
parent
f8bb2d82c9
commit
fa2059bb32
5 changed files with 92 additions and 161 deletions
modules/services
|
@ -11,21 +11,6 @@ terraform {
|
|||
}
|
||||
}
|
||||
|
||||
provider "authentik" {
|
||||
url = var.authentik_url
|
||||
token = var.authentik_token
|
||||
}
|
||||
|
||||
provider "postgresql" {
|
||||
host = var.postgresql_host
|
||||
port = var.postgresql_port
|
||||
database = "postgres"
|
||||
username = var.postgresql_username
|
||||
password = var.postgresql_password
|
||||
sslmode = "verify-full"
|
||||
connect_timeout = 15
|
||||
}
|
||||
|
||||
locals {
|
||||
services_auth = {for key, val in var.services : key => val if val.auth}
|
||||
services_database = {for key, val in var.services : key => val if val.database}
|
||||
|
|
|
@ -1,26 +1,6 @@
|
|||
variable "authentik_url" {
|
||||
}
|
||||
|
||||
variable "authentik_token" {
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
|
||||
variable "postgresql_host" {
|
||||
}
|
||||
|
||||
variable "postgresql_port" {
|
||||
}
|
||||
|
||||
variable "postgresql_username" {
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "postgresql_password" {
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
|
||||
variable "services" {
|
||||
type = map(object({
|
||||
name = string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue