Add postgresql installation along with maas configuration

Change-Id: Idb6f433b518d710db9d3f31b30b9da4217dc1cad
Related-Bug: PROD-23038 (PROD:23038)
diff --git a/config-drive/master_config.sh b/config-drive/master_config.sh
index b87b5ba..bf15ff3 100644
--- a/config-drive/master_config.sh
+++ b/config-drive/master_config.sh
@@ -82,6 +82,11 @@
 }
 
 function process_maas(){
+  postgres_enabled=$(salt-call --out=text pillar.get postgresql:server:enabled | awk '{print $2}' | tr "[:upper:]" "[:lower:]")
+  if [[ "${postgres_enabled}" == "true" ]]; then
+    salt-call ${SALT_OPTS} state.sls postgresql.server
+  fi
+
   _region=$(salt-call --out=text pillar.get maas:region:enabled | awk '{print $2}' | tr "[:upper:]" "[:lower:]" )
   if [[ "${maas_cluster_enabled}" == 'true' ]]; then
     salt-call ${SALT_OPTS} state.sls maas.cluster