Merge "Arranging environments contexts"
diff --git a/de/heat-templates/scripts/instance_boot.sh b/de/heat-templates/scripts/instance_boot.sh
index 7400bb7..c16b494 100644
--- a/de/heat-templates/scripts/instance_boot.sh
+++ b/de/heat-templates/scripts/instance_boot.sh
@@ -163,6 +163,8 @@
function prepare_network {
systemctl restart systemd-resolved
+ # Make sure local hostname is present in /etc/hosts
+ sed -i "s/127.0.0.1 localhost/127.0.0.1 localhost\n${NODE_IP_ADDRESS} $(hostname)/" /etc/hosts
}
function workaround_default_forward_policy {