Better support for non-hostname certnames.
This is a rather general feature request, as I'm unsure what the actual implementation would or should look like.
We manage a lot of laptops with Puppet, laptops that are continually changing hostnames and IP addresses.
This means that we do not use the hostname as the puppet certname, we instead generate UUIDs that look something like "ecd62621-dc65-4f2e-a6ed-81037e73c0af".
This means that web interfaces such as the Foreman are a little difficult to use to find actual machines....
I'm not sure what the solution is here, but a few things I can think of:
- Allow "search" to search on arbitrary fact values and puppet variables. hostname, IP, custom facts we have such as "primary_user".
- Allow the host display to be customized easily to display additional fields such as the ones above.
fixes #137 - Better support for non-hostname certnames
This patch introduce a new setting :use_uuid_for_certificates which
defaults to false.
users who wish to deploy their hosts using a random unique id, should
enable that setting, and use the certname directive in their puppet.conf
certname = <%= @host.certname %>
when the certname was not generated (e.g. for hosts created before this
patch) @host.certname would return the host name instead.
for provisioning where DNS is not reliable, it is highly recommended to
this patch enables future work, to identify systems (while being
provisioned) via UUID, not requiring the need for ipaddress/mac based
detection, and therefore avoiding NAT and similar issues.