On Thu, Jan 28, 2010 at 5:20 PM, martin <[email protected]> wrote:
> Ohad, > > On Jan 28, 4:22 am, ohad <[email protected]> wrote: > > Any comments on this one? its hitting me hard on all of my Solaris > > boxes. > > > the diference between the NIS and DNS domain name has bitten me too. I > solved it by pushing a dnsdomainname script which strips the first > part of what is returned from domainname (which is the NIS addition > for us). > Yes I've done the same :) > > I'd like to see a solution that takes in to account all different > configs: > - nodename set to hostname > > - pick up domain from DNS > do you really want to query dns to find the the host domain name? - pick up domain from LDAP > - pick up domain from NIS > I would think that would be a completely different fact - what I wanted to do in this patch is to say - domainname is DNS, if you want nis or ldap, use another fact. > - nodename set to hostname and fqdn > nodename as /etc/nodename? isnt it part of the system configuration (rather then querying it?) The output of (hostname) or the ruby Socket call, return the hostname or fqdn (if its defined as fqdn). what I've done is that if the hostname is fqdn, then the hostname is the shortname, and that would also set the fqdn fact - before it used to create the fqdn fact from hostname + domain. Cheers, Ohad -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
