From 47a923e42d79e90885b1c25c0257720b82b01956 Mon Sep 17 00:00:00 2001 From: Abhilash Nair Date: Fri, 25 Feb 2022 15:49:13 -0500 Subject: [PATCH] resolve issue with nbgrader database string --- modules/illumidesk/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/illumidesk/main.tf b/modules/illumidesk/main.tf index baf9834..84d2904 100644 --- a/modules/illumidesk/main.tf +++ b/modules/illumidesk/main.tf @@ -54,7 +54,7 @@ locals { lti_11_shared_secret = tostring(random_string.lti_11_shared_secret.result) nbgrader_password = var.enable_external_db == true ? var.database_password : var.postgresql_enabled == true ? var.postgresql_password : "" jupyterhub_password = var.enable_external_db == true ? var.database_password : var.postgresql_enabled == true ? var.postgresql_password : "" - external_db_url = var.enable_external_db == true ? format("postgresql://%s:%s@%s.svc.cluster.local:%d/%s", var.database_user, var.database_password, var.db_host, var.db_port, var.database_name) : "" + external_db_url = var.enable_external_db == true ? format("postgresql://%s:%s@%s:%d/%s", var.database_user, var.database_password, var.db_host, var.db_port, var.database_name) : "" postgresql_db_url = var.postgresql_enabled == true ? format("postgresql://%s:%s@%s-postgresql.%s.svc.cluster.local:%d/%s", var.postgresql_username, var.postgresql_password, var.namespace, var.namespace, var.postgresql_port, var.postgresql_db) : "" }