GTNPORTAL-3385 Support full-ha and ha profiles in domain mode

To merge in master and 3.6.x branches.