I want to put some local machines with fixed IP addresses into /etc/hosts.[...]
As I said: This is not a dynamically-generated VM or a cloud server
instance, it's a Raspberry Pi sitting on my desk. It's configuration
isn't going to change with the direction of the wind. It's not the
sort of installation for which cloud-config was conceived, and I'm
slightly surprised that package is part of the installation (it isn't
on my x64 desktop machine running Debian Trixie). For my own purposes disabling the update of /etc/hosts or hard-coding the domain in the
template will suffice ... but what's the *right* answer.
AFAICT the right answer in your use case is to remove cloud-init.
| Sysop: | Luis Silva |
|---|---|
| Location: | Lisbon |
| Users: | 768 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 24:24:38 |
| Calls: | 608 |
| Files: | 46,973 |
| Messages: | 13,844 |