Re: [Puppet Users] fqdn on puppet clients

2011-09-08 Thread Ken Barber
> The first two could be solved as one using 'hostname --fqdn', meybe even > the third one. Perhaps the methodology chosen was more compatible with multiple UNIX operating systems. For example hostname --fqdn doesn't seem to work on Mac OS X. A lot of facter code may appear quirky on the surface f

Re: [Puppet Users] fqdn on puppet clients

2011-09-08 Thread Bjorge Solli
Hi Ken! Thanks for the reply! The first two could be solved as one using 'hostname --fqdn', meybe even the third one. I decided we should solve this the proper way and update dhcp to specify option domain-name klientdrift.uib.no uib.no But since our clients will wander around the globe we want

Re: [Puppet Users] fqdn on puppet clients

2011-09-08 Thread Ken Barber
Hi Bjørge, The clue is in looking at the code for the 'fqdn' fact: host = Facter.value(:hostname) domain = Facter.value(:domain) if host and domain [host, domain].join(".") And drilling into the 'domain' fact: if name = Facter::Util::Resolution.exe