Open martbhell opened 7 years ago
Setting a good one in "static" means that the server has a good hostname before DHCP. This can be observed by running "journalctl -b 0" (journal of the last boot).
Without dhcp probably the network init script sets it while getting the info from "ipcalc --silent --hostname $IPADDR" during bootup.
before:
# hostnamectl status Static hostname: localhost.localdomain Transient hostname: io2.int.fgci.csc.fi
command:
hostnamectl set-hostname --static io2.int.fgci.csc.fi
after:
# hostnamectl status Static hostname: io2.int.fgci.csc.fi
and after a reboot:
# hostnamectl Static hostname: io2.int.fgci.csc.fi Icon name: computer-server Chassis: server
There is an ansible hostname module 1 which seems 2 to run hostnamectl --pretty --static and --transient . Should probably use that. Which role to add this to though?
A benefit of setting a static hostname: "ibnetdiscover" has the hostname of the node
Maybe we should set a static hostname? What is the preferred/recommended method from RedHat?
On test system compute nodes: