refactored node_layout to use public and private ips, so that login_host can override a public ip