Revision 6e0e55ba

b/snf-deploy/fabfile.py
283 283
    try_run("echo StrictHostKeyChecking no >> /etc/ssh/ssh_config")
284 284
    cmd = " sed -i 's/^127.*/127.0.0.1 localhost/g' /etc/hosts "
285 285
    try_run(cmd)
286
    host_info = env.env.ips_info[env.host]
287
    cmd = "hostname %s" % host_info.hostname
288
    try_run(cmd)
289
    cmd = "echo %s > /etc/hostname" % host_info.hostname
290
    try_run(cmd)
286 291

  
287 292

  
288 293
def try_run(cmd, abort=False):

Also available in: Unified diff