Issue #10167 has been updated by Ramin K.
This already works, but it's not through facter. When the Puppet agent runs it
reads puppet.conf or /etc/{default|sysconfig}/puppet which will contain
certname = mycertname which is then passed to the master as a fact. It is then
availible to be used in templates.
----------------------------------------
Feature #10167: Add Puppet certname retrieval to Facter
https://projects.puppetlabs.com/issues/10167
Author: Alexandre Fouche
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Keywords: facter certname cloud provisioner
Branch:
Affected Facter version: 1.6.2
# Context
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 also queried the mailing list at
[http://groups.google.com/group/puppet-users/browse_thread/thread/81bf8df1f8ad723f](http://groups.google.com/group/puppet-users/browse_thread/thread/81bf8df1f8ad723f)
# Feature request
Can Facter return the certname used by the puppet client, so that it can be
used in erb templates ?
--
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.