updated monetization config when no pgmaster exists
diff --git a/templates/silent-install.conf.j2 b/templates/silent-install.conf.j2
index c273f6d..05bc860 100644
--- a/templates/silent-install.conf.j2
+++ b/templates/silent-install.conf.j2
@@ -63,7 +63,11 @@
{% if opdk_monetization is defined and opdk_monetization | bool == True %}
# Monetization has been configured
PG_USER={{ pg_user }}
+{% if pgmaster_ip is defined %}
MO_PG_HOST={{ pgmaster_ip }}
+{% elif pg_ip is defined %}
+MO_PG_HOST={{ pg_ip }}
+{% endif %}
MO_PG_USER={{ pg_user }}
MO_PG_PASSWD='{{ pg_pass }}'
CASS_CLUSTERNAME={{ opdk_cass_clustername }}