Issue #7484 has been updated by James Patterson.
I've also experienced this problem - but intermittently. Upgrading to facter 1.7.2 fixes the problem, but it seems like puppet has its own facter facts which it sometimes chooses to use over the facter facts from facter. ---------------------------------------- Bug #7484: facter fqdn is empty when domainnames aren't containing any dot (ie tld) https://projects.puppetlabs.com/issues/7484#change-95770 * Author: Edouard Bourguignon * Status: Closed * Priority: Normal * Assignee: Hailee Kenney * Category: library * Target version: 1.7.0 * Keywords: tld fqdn hostname dot intern * Branch: https://github.com/puppetlabs/facter/pull/199 * Affected Facter version: ---------------------------------------- As far as I understand the following regexp used in domain.rb to find out the domainname: domain = Facter::Util::Resolution.exec('dnsdomainname') next domain if domain =~ /.+\..+/ domainname must contain a dot, which is not completely compliant with RFCs[ยน] and prevent using facter on tld servers. How to reproduce: On a server with fqdn "ns01.tld", this is the result of some commands: * hostname => ns01 (OK) * hostname -f => ns01.tld (OK) * facter hostname => ns01 (OK) * facter fqdn => (bad) * dnsdomainname => tld (OK) but dnsdomainname command had to be installed facter fqdn should return ns01.tld and should be (<ins>very important</ins>) consistent with "hostname -f". [1]: RFC921: Every current name in this new system has the form "old-simple-name.ARPA". That is, the all the hosts are in a domain called "ARPA" -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
