On Wed, Oct 19, 2011 at 2:06 AM, Alexandre Fouché < [email protected]> wrote:
> Hi, > > I am using the cloud provisioner to bootstrap some ec2 nodes, and these > clients are signed using a randomly generated certname, which is put in > /etc/puppet.conf at the bootstrap time (eg certname = > d7bcd693-73fd-495f-0876-ff91ea11111e). > > But my puppet code repo also manages the puppet.conf file, so the file will > be overwritten on the client at the first puppet run. Nevertheless, i should > not lose what was the original certname for this client, because i need to > insert it in the puppet.conf.erb that will be pushed to this client, > otherwise the puppetmaster will not recognize and allow this client anymore. > > I ran "facter" on the client, and the certname does not appear. I ran > "puppet --genconfig |grep certname" and the certname does not appear either. > I can not check the cert name in /var/lib/puppet/ssl/certs because the cert > will appear after first puppet run. > > Is there a way to to know what certname is using a puppet client, and be > able to use it in erb templates, or am using puppet and the cloud > provisioner in a wrong way ? > http://docs.puppetlabs.com/guides/faq.html#are-there-variables-available-other-than-those-provided-by-facter $clientcert — Provided by the agent; contains the agent node’s certname. Added in Puppet 2.6.0. > > AF > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" 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-users?hl=en. > -- Nigel Kersten Product Manager, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
