Jira (FACT-3168) fact networking.domain does resolv to dot

3 views
Skip to first unread message

Mike Fröhner

unread,
Nov 30, 2022, 7:46:02 AM11/30/22
to puppe...@googlegroups.com
Mike Fröhner created an issue
 
Facter / Bug FACT-3168
fact networking.domain does resolv to dot
Issue Type: Bug Bug
Affects Versions: FACT 4.2.13
Assignee: Unassigned
Components: Facter 4
Created: 2022/11/30 4:45 AM
Priority: Critical Critical
Reporter: Mike Fröhner

We recently have upgraded to puppet 7.0.18 and facter 4.2.13 for our Ubuntu 22.04 nodes.

Since this upgrade all Ubuntu 22.04 do resolv the facts `networking.domain` to `.` and `networking.fqdn` to `hostname..`.

This comes from [the resolver](https://github.com/puppetlabs/facter/blob/4.2.13/lib/facter/resolvers/linux/hostname.rb#L101).

If you have a symlinked /etc/resolv.conf file to /run/systemd/resolve/stub-resolv.conf which is written by the systemd service `systemd-resolved` containing a config with `search .` (this is the default for Ubuntu 22.04).

Therefore all values with:
```
Stdlib::Host $hostname = $facts['networking'['fqdn']
```
are broken.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages