Ask Your Question

Domain fact is missing

asked 2014-03-20 12:04:44 -0600

jjohnson-okta gravatar image

Hi there,

Puppet Docs report that domain is core fact, and should always exist (even if nill)

I can think of a couple of questions that can help my understanding of the situation

  • Why is it that my domain fact is missing?
  • If a fact is nill, does it stop showing up in the facter command with no args?

Some useful information about my environment:

$ facter|grep -i domain
$ lsb_release -irc
Distributor ID: Ubuntu
Release:    13.10
Codename:   saucy
$ facter --version

Any information would be appreciated,

-- Josh

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-20 14:22:18 -0600

Stefan gravatar image

If a fact returns nil it does not show up in the facter output.

Please try the following.

  1. run facter kernel to make sure your system is detected as Linux
  2. run hostname --fqdn. This should give you the full qualified domain name. Facter uses this information to extract the domain
  3. If the above output does only return a shortname without a domain component, try running dnsdomainname. Facter will fall back to this one.
  4. If the above output still does not return a thing, facter will parse /etc/resolv.conf for a domain or search entry.
  5. If the above fails, facter ...
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-03-20 12:04:44 -0600

Seen: 410 times

Last updated: Mar 20 '14