[Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Doug Balmer
I raised a bug earlier https://projects.puppetlabs.com/issues/9766 which could be a can of worms. My opinion is, facter has a bug and needs (eventual) fixing even if it causes problems for some. There is a reason we have changelogs. Debate? -- You received this message because you are subscribe

Re: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Doug Balmer
> > 'Note that periods are only allowed when they serve to delimit components > of "domain style names".' > Let's give this sentence some context. ASSUMPTIONS 1. A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9

Re: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Doug Balmer
> > but I don't think that RFC quoting alone is going to give us the right > answer as to whether we should do it or not. > 100% agree. To add to my point, facter should be reporting facts. If the hostname, albeit possibly incorrectly, is set to "foo.bar" then it should report it so. -- You re

Re: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Doug Balmer
> > Except that is the fqdn. > No. "foo.bar" could be the hostname but foo.bar.example.com could be the FQDN. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe fro

Re: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Doug Balmer
> > "I understand there are major implications to this and the task may be > challenging, one suggestion would be to set up another facter > parameter something like > > uname.hostname > > or > > uname.domain > > or perhaps a configuration parameter to use POSIX compliance parameters." > > Which ma

Re: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Doug Balmer
> > Our concept of 'hostname' as a fact is equivalent to hostname -s up >> until now - it doesn't mean the result of the 'hostname' command >> necessarily. > > > This makes sense and is an easy compromise. Could I suggest the doco > reflect that $hostname is `hostname -s`? > ... or at least your d

Re: [Puppet Users] Re: Hostname fact doesn't handle hostnames with periods

2011-10-03 Thread Doug Balmer
> > about. In fact, I think if you were to use periods it would confuse > DNS resolve because it follows the same convention as stated in the > RFC. If I were external trying to look up host.server.domain.com, my > DNS would try to look for a nameserver for server.domain.com. You > would still be f