Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1077

Fact fqdn no longer includes domainname

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: FACT 3.0.1
    • Fix Version/s: FACT 3.0.2
    • Component/s: Community
    • Labels:
      None
    • Environment:

      Debian 7 Wheezy Linux, Puppet Agent 1.2.1-1wheezy package

    • Template:

      Description

      Some of my manifests fail after updating to puppet-agent 1.2.1-1wheezy. It seems that the $::fqdn fact no longer included the domain name for my system.

      rycon# facter -v
      3.0.1 (commit 9b1ef723a1494a01e0eccfe93a75fd43316690c2)
       
      rycon# facter fqdn
      rycon
      rycon# hostname
      rycon.example.net
      

      I tracked this down to the order of entries in /etc/hosts. It fails as above when /etc/hosts contains the following line:

      10.11.12.13   rycon   rycon.example.net
      

      I changed that line to the following:

      10.11.12.13   rycon.example.net       rycon
      

      Then facter works as before:

      rycon# facter fqdn
      rycon.example.net
      

      It seems that Facter 3 suddenly relies on the order of host aliases in /etc/hosts which is different from what Facter 2.x did.

      In my environment I prefer to have the host alias without domain name in the first place as other software packages already rely on the order of entries.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stm Stefan Möding
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support