From 50b9df87868d127859f241840266837f222f3884 Mon Sep 17 00:00:00 2001 From: duartecardao Date: Mon, 17 Jun 2024 23:36:01 +0200 Subject: [PATCH] fix localhost ip - docs/03-compute-resources.md Localhost IP had a typo. --- docs/03-compute-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/03-compute-resources.md b/docs/03-compute-resources.md index 207805a..96dcc18 100644 --- a/docs/03-compute-resources.md +++ b/docs/03-compute-resources.md @@ -105,7 +105,7 @@ Set the hostname on each machine listed in the `machines.txt` file: ```bash while read IP FQDN HOST SUBNET; do - CMD="sed -i 's/^127.0.1.1.*/127.0.1.1\t${FQDN} ${HOST}/' /etc/hosts" + CMD="sed -i 's/^127.0.0.1.*/127.0.0.1\t${FQDN} ${HOST}/' /etc/hosts" ssh -n root@${IP} "$CMD" ssh -n root@${IP} hostnamectl hostname ${HOST} done < machines.txt