Issue #7484 has been updated by Andrew Parker. Target version changed from 2.0.0 to 1.7.0
This was actually released in 1.7.0 ---------------------------------------- Bug #7484: facter fqdn is empty when domainnames aren't containing any dot (ie tld) https://projects.puppetlabs.com/issues/7484#change-94830 * 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.
