You already answered that - never-mind :-).
ken.
facter domain
?
What version of facter are you running btw?
Can you show the results of the following commands:
hostname
dnsdomainname
cat /etc/resolv.conf
Cheers.
ken.
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>
--
"Join us for PuppetConf, September 22nd and 23rd in Portland, OR:
http://bit.ly/puppetconfsig"
https://github.com/puppetlabs/facter/commit/f7daae300d5c993052dd6c49b1b5e1f3501eaa10
Basically the domain =~ part is _not_ returning true even though
dnsdomainname is returning something, and not falling through as it
used to to find the answer from resolv.conf I think. I'm not sure why
this logic was changed to not be a fall-through logic - its really a
question for the patch author.
Can you raise a ticket Sans and post it to this thread?
http://projects.puppetlabs.com/projects/facter/issues/new
ken.
Let me take a closer look at the code and see if I can work it out.
ken.
if name = Facter::Util::Resolution.exec('hostname')
...
elsif domain = Facter::Util::Resolution.exec('dnsdomainname')
The first bit will pretty much always be true ... and if your
'hostname' command doesn't contain your full domain - it won't fall
back to checking dnsdomainnname or resolv.conf.
ken.
http://projects.puppetlabs.com/issues/9457
ken.
https://raw.github.com/puppetlabs/facter/master/lib/facter/domain.rb
ken.
ken.