Jeff McCune <[email protected]> writes:
> On Sat, Aug 21, 2010 at 3:12 PM, Markus Roberts <[email protected]> wrote:
>> All --
>>
>> Something we'd be interested in getting feedback on; Facter 1.5.8rc2
>> includes a patch for three issues around fqdn determination:

[...]

> Here's my proposal.  Unfortuantely, we're going to have to draw a line
> in the sand about what is "proper" system configuration and then
> assume that configuration.
>
> Standardize on uname -p and hostname -f, in that order, as the

I assume you mean 'uname -n', since the processor probably isn't interesting.
(or we are seeing a SYSV / BSD difference or something.)

> authoritative fully qualified name of the machine.  If a system does
> not return a fully qualified name from one of these two commands, then
> the system is improperly configured and it's not a bug in Facter.

I would agree with that, or with using the gethostbyaddr / getaddrinfo methods
which pass through the local NSS stack.  Those later are the functions that
the majority of Unix daemons (Apache, Postfix, sendmail, etc) use to determine
the FQDN automatically.

hostname -f is implemented the same way, and by design uses NSS, which means
that the local sysadmin can configure that to do whatever oddness is required
WRT local files, DNS, LDAP, NIS, WINS, or any other name service.

[...]

> The solution is for them to properly configure their nodename and hostname
> and not for us to patch facter again.

*nod*  Using the recommended method this would require only documenting:

    in /etc/hosts edit it to contain:
    you.ip.address    hostname.local.domain  hostname


> This is acceptable in my mind, since it's a trivial change to the system
> hostname rather than a sweeping change to the DNS infrastructure.  In fact,
> executing "hostname foo.bar.com" will be sufficient to fix the problem.

Generally, the hostname on Linux does not contain dots, as it is supposed to
be only the local node name.  (eg: uname -n)

Full name stuff comes out of NSS, as used by hostname, etc, and which for most
people means that you are looking at the NSS files module and /etc/hosts.

        Daniel

I can't actually speak for the *BSD stack, but I understand they are similar.

-- 
✣ Daniel Pittman            ✉ [email protected]            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to