AMBARI-5649. Add postgres external as separate option in ambari-server.py. Attribute Error fix. (swagle)