Bug #20869

provide option to change certificate name on hostname change

Added by Han Boetes 10 months ago. Updated 10 months ago.

Target version:-
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:


Since I quite sometimes have to change a hostname I've set up my puppet environment. I noticed the certificate name doesn't change with the new hostname. This makes sense but sometimes that's quite confusing.

So I've set up a puppet recipe that changes the puppet.conf and now all I have to do is to manually sign the cert. No big deal. But, IMHO it would even be nicer if foreman could manage both the certificate name and puppet.conf. I can imagine adding a warning in the interface with a message like:

Your hostname and cert are not the same. Would you like to change the cert name?


#1 Updated by Han Boetes 10 months ago

This seems to be a related issue: http://projects.theforeman.org/issues/6566

#2 Updated by Daniel Lobato Garcia 10 months ago

  • Category set to PuppetCA

This means you would want your new hostname (which becomes the certname) to be autosigned, correct?
This can be done right now, but you would have to rebuild the host after renaming, just editing and submitting is not enough.

#3 Updated by Han Boetes 10 months ago

Hello Daniel,

In my use case I install a host, make a few changes and change the name from the test name to the production name, so not having to redeploy it would be nice.

Also available in: Atom PDF