Add postgresql host and port to output
This commit is contained in:
parent
395f556f4a
commit
7ac0d86404
3 changed files with 12 additions and 2 deletions
3
main.tf
3
main.tf
|
|
@ -163,6 +163,9 @@ module "services" {
|
|||
|
||||
minio_server = var.minio_server
|
||||
|
||||
postgresql_host = var.postgresql_host
|
||||
postgresql_port = var.postgresql_port
|
||||
|
||||
services = var.services
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ output "minio_data" {
|
|||
output "postgresql_data" {
|
||||
value = {
|
||||
for key in keys(postgresql_database.service_databases) : key => {
|
||||
host = var.postgresql_host
|
||||
port = var.postgresql_port
|
||||
user = postgresql_role.service_roles[key].name
|
||||
pass = postgresql_role.service_roles[key].password
|
||||
database = postgresql_database.service_databases[key].name
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ variable "authentik_url" {}
|
|||
|
||||
variable "minio_server" {}
|
||||
|
||||
variable "postgresql_host" {}
|
||||
|
||||
variable "postgresql_port" {}
|
||||
|
||||
|
||||
variable "services" {
|
||||
type = map(object({
|
||||
host = string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue