Duplicate host


I have been able to produce a situation where I got a duplicate host. Here is how I had this situation :

  • Deploy a vm with foreman. The OS associated is Debian 9.7
  • run puppet agent on the node a new node is created on foreman with same name but different settings which come from facter. Such has the operating system is now Debian 9.8

How can I fix this ? I’m not really sure why on puppet run this create a new host on foreman. On what foreman does determine this is a new host ?


It seems that I got the issue since I disabled FQDN option :

Don’t understand why ?

I finally found the source of the issue.

There is two parameters available :
Use short name for VMs
Append domain names to the host

I switch the wrong parameter leading to removing the domain name on puppet run.