Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
resolve issue with nbgrader database string
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi94N authored Feb 25, 2022
1 parent 33753e9 commit 47a923e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/illumidesk/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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) : ""
}

Expand Down

0 comments on commit 47a923e

Please sign in to comment.