On Nov 2, 2010, at 9:09 AM, Robert Scheer wrote: > On Mon, Nov 01, 2010 at 13:07 -0700, Patrick wrote: > >> This isn't a very good answer, but the variable "$servername" contains the >> name of the server the client think's it's connecting to. That may do what >> you want. > > This is a very good answer! Thank you. Where in the documentation did you > find this? It doesn't seem to be a standard fact from facter: it doesn't > show up in $vardir/yaml/facts/*.yaml on the master.
Actually, I seem to have it backwards. Looks like $servername is the server-side config variable which is why you can't find it. Alan Barrett seems to have a solution for getting the client side config. On the other hand, if your DNS is configured right, $servername should work too. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.