What if the host changes? e.g., a new node is provisioned to be the app server?

hardcoded values like this are one of the reasons why we prefer chef server + search, fwiw. Makes for easier management on cloud platforms.