Commit 88a22bc8 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Christos Stavrakakis
Browse files

Enforce nodes the given hostnames

This means that hostnames are not important in nodes.conf and
should not reflect to existing infra.
Signed-off-by: default avatarDimitris Aragiorgis <>
parent 6ab44555
......@@ -283,6 +283,11 @@ def setup_hosts():
try_run("echo StrictHostKeyChecking no >> /etc/ssh/ssh_config")
cmd = " sed -i 's/^127.*/ localhost/g' /etc/hosts "
host_info = env.env.ips_info[]
cmd = "hostname %s" % host_info.hostname
cmd = "echo %s > /etc/hostname" % host_info.hostname
def try_run(cmd, abort=False):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment