Ask Your Question
0

Domain fact is missing

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

jjohnson-okta gravatar image

Hi there,

Puppet Docs report that domain is core fact, and should always exist (even if nill) http://docs.puppetlabs.com/facter/latest/core_facts.html#domain

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
1.7.0

Any information would be appreciated,

-- Josh

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

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 ...
(more)
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

Stats

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

Seen: 357 times

Last updated: Mar 20 '14