Issue #2565 has been updated by Olivier Perriot.

Hi we have the same need ( much servers frequently reinstalled with another 
fqdn )

So we would:

   - deploy a single certificate on all severs at the installation ( and use 
"certname" in the /etc/puppet/puppet.conf of the server )
   - use the option "node_name=facter" to be able retrieve the node on the 
puppetmaster ( on the puppetmaster we use external_nodes to manage nodes )

The patch above works but only if the servers use puppet-0.24.*

It doesn't work in puppet-0.25 .. and of course all ours servers are now in 
puppet-0.25 ....

Is there another way to to it ?
Else, is scheduled to fix this issue ? ( And if yes, in which version ? )

Thanks in advance
----------------------------------------
Feature #2565: Getting client fqdn with certname and external_nodes 
http://projects.puppetlabs.com/issues/2565

Author: Jayme Cox
Status: Re-opened
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected version: 0.24.8
Keywords: 
Branch: 


In EC2 you often don't know what the IP address will be. To work around this, I 
assign a single cert to all the clients and use an external_nodes script to 
classify them based on hostname.

However, because I set certname, when I run the external_nodes script, it does 
not get passed the full list like normal (when not using certname).

in 24.8 network/handler/master.rb has:

       def getconfig(facts, format = "marshal", client = nil, clientip = nil)
            facts = decode_facts(facts)

            client ||= facts["hostname"]

However, if you use certname then the hostname is set to that value.

If I change the client line to:

            client = facts["fqdn"]

Then I can parse the clients FQDN.

Is there any possibility of at least getting the full list (certname, full 
breakdown of FQDN) when using external_nodes scripts no matter what?

Thanks!


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to