Rafał Radecki
2013-Jun-19 08:24 UTC
[Puppet Users] puppet 3.1.1 - wrong domain and fqdn in facter.
Hi All. I am using: #rpm -qa | egrep ''puppet|facter'' puppetlabs-release-6-7.noarch puppet-3.1.1-1.el6.noarch facter-1.7.1-1.el6.x86_64 on: #cat /etc/redhat-release ; uname -r CentOS release 6.4 (Final) 2.6.32-358.11.1.el6.centos.plus.x86_64 My hostname is server.one.two.com: # hostname server.one.two.com # hostname --fqdn one.two.com #grep HOSTNAME /etc/sysconfig/network HOSTNAME=server # egrep ''domain|search'' /etc/resolv.conf domain one.two.com search one.two.com But in facter: # facter | egrep ''hostname|domain|fqdn'' domain => two.com fqdn => server.two.com hostname => server Has anyone got a similar problem? What can be done to solve it? Best regards, Rafal Radecki. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
David Schmitt
2013-Jun-19 08:55 UTC
Re: [Puppet Users] puppet 3.1.1 - wrong domain and fqdn in facter.
On 19.06.2013 10:24, Rafał Radecki wrote:> My hostname is server.one.two.com: > > # hostname > server.one.two.com > # hostname --fqdn > one.two.comThis is wrong. "hostname" should return either "server" or "server.one.two.com" and "hostname --fqdn" should return "server.one.two.com" (the Fully Qualified Domain Name).> But in facter: > > # facter | egrep ''hostname|domain|fqdn'' > domain => two.com > fqdn => server.two.com > hostname => server > > Has anyone got a similar problem? What can be done to solve it?Facter is confused by your inconsistent setup. Fix that and facter will work too. Regards, David -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.