AMBARI-8473. Ambari public hostname script doesn't work (aonishuk)