quassel_instance/locals.tf

15 lines
632 B
HCL

locals {
# Lets just take a moment to make some ease of life variables
# Quassel
quassel_port = random_integer.quassel_port.result # Lets just put the port in a variable so we can use it in multiple places
# database
pg_username = "postgres"
pg_database = "postgres"
pg_password = random_password.quassel_db_password.result
pg_hostname = docker_service.quassel_db.name
# We're going to use the quassel port + 1 for the postgres port because why not.. But this is only for external access, inside the internal network it will still be 5432!
pg_port_internal = 5432
pg_port_external = local.quassel_port + 1
}