Host Renaming¶
Following steps are required to rename a host.
Introduce New Hostname¶
Sysdb/bob¶
For sysdb create a new node with bob as usual. For reference do
then add the new node and the same for the MAC addresses:Hiera¶
In Hiera ensure that a host specific configuration file exists for the FQDN with the same content as for the old hostname.
Actual Hostname Change¶
On the node as root run
which changes the local hostname, removes the local Puppet certificate and updates the configuration with Puppet using the new hostname.
Other Changes to Consider¶
- change DNS entry if a static IP address is assigned
- redo SSL/TLS certificates with new hostname
- if the host is icinga2 monitored you need to remove icinga2 from the host before running puppet so that a new cert, etc. is generated for the host
Remove Old Hostname¶
bob node delete $OLD_FQDNbob puppet delete $OLD_FQDN- delete puppet certificate (can also be done by web UI)- remove from Hiera
- inform the Linux Team (linux-eng@psi.ch) so it can remove other data and remove the computer object from the AD