You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- $ man hostname --
The recommended method of setting the FQDN is to make the hostname be an alias for the fully qualified name using /etc/hosts, DNS, or
NIS. For example, if the hostname was "ursula", one might have a line in /etc/hosts which reads
127.0.1.1 ursula.example.com ursula
--
because otherwise I faced an Error with duplicated entries for "localhost.localdomain":
The problem is, that ubuntu reads the first entry in /etc/hosts to determine fqdn, which is the first entry created by this modul "localhost.localdomain"
Enabling use_fqdn now leads to an error, because this host entry is already configured (race condition). The error is ok, because a fix is necessary.
Also I don't want to use the public ip "$::address" as fqdn (use_fqdn => false), because I want it to be configured for "127.0.1.1" and it could not exist as duplicate for the fqdn entry.
Moreover if the net device gets detached somehow or by purpose, the host could not determine its name anymore, which leads to timeouts for commands, which try to resolve the hostname, like sudo and so on.
In Ubuntu (and osfamily:debian) it seems to be necessary to add a configuration like this:
see https://wiki.ubuntuusers.de/hosts/ or
because otherwise I faced an Error with duplicated entries for "localhost.localdomain":
The problem is, that ubuntu reads the first entry in
/etc/hosts
to determine fqdn, which is the first entry created by this modul "localhost.localdomain"Enabling
use_fqdn
now leads to an error, because this host entry is already configured (race condition). The error is ok, because a fix is necessary.Also I don't want to use the public ip "$::address" as fqdn (
use_fqdn => false
), because I want it to be configured for "127.0.1.1" and it could not exist as duplicate for the fqdn entry.Moreover if the net device gets detached somehow or by purpose, the host could not determine its name anymore, which leads to timeouts for commands, which try to resolve the hostname, like sudo and so on.
I suggest a code change at the end of the manifest (line 146-150) to solve this:
This issue seems to be similar to
issues/40
but it differs because there it is suggested that the exported resource becomes a normal host entry.
The text was updated successfully, but these errors were encountered: