updated sso
diff --git a/templates/edge-sso-installer-config.conf.j2 b/templates/edge-sso-installer-config.conf.j2
index a7dc1db..8b15b73 100644
--- a/templates/edge-sso-installer-config.conf.j2
+++ b/templates/edge-sso-installer-config.conf.j2
@@ -12,7 +12,7 @@
 MS_SCHEME={{ edge_sso_ms_scheme | default('http') }}
 
 ## Postgres configuration.
-PG_HOST=$IP1
+PG_HOST={{ pgmaster_ip | default(pg_ip) }}
 PG_PORT=5432
 # Postgres username and password as set when you installed Edge.
 PG_USER={{ pg_user }}