Deleted host via api, how to re-add?

Normally when I provision a server, when puppet runs the host is
automatically added to Foreman. I recently worked on a de-provision
process and tested uses the api to delete a host. Afterwards on a
re-provision of the host I deleted, it is not being added to Foreman. Can
someone point me in the right direction? There is a step I am missing so
that will get that re-provisioned host back into Foreman.

Hello,

double check the puppet ca, if it has still the old certificate for new host,
the puppet bootstrap will fail since it tries to create new one with the same
FQDN. Normally it should work fine but it depends how exactly you did de-
provisioning. The cert should be revoked supposing the host was assign to the
puppet ca while being deleted.

If that's not the case, it would be good to check provisioning logs or try
running manually on the newly provisioned host that does not appear to see why
the initial puppet run fails.

Hope this helps

··· On čtvrtek 19. října 2017 20:12:43 CEST gavinh@nvidia.com wrote: > Normally when I provision a server, when puppet runs the host is > automatically added to Foreman. I recently worked on a de-provision > process and tested uses the api to delete a host. Afterwards on a > re-provision of the host I deleted, it is not being added to Foreman. Can > someone point me in the right direction? There is a step I am missing so > that will get that re-provisioned host back into Foreman.


Marek