Feature #16417
closedTurning off create_new_host_when_facts_are_uploaded breaks discovery
Description
i hope i can explain my problem so everyone can understand.
We have a external puppetmaster in our environment and want to receive facts and reports from then. This external puppetmaster managed more hosts than our foreman.
So we set the value:
settings - auth - trusted puppetmaster hosts - <out puppetmaster server>
settings - puppet - Create new host when facts are uploaded - false
settings - puppet - Create new host when report is uploaded - false
First i think all processes works fine. Until i want to discover a server over foreman_discovery plugin.
The discovered hosts show up under hosts - discovered hosts. But no facts are there. So i can't provision the hosts.
After a while i change the setting:
settings - puppet - Create new host when facts are uploaded - true
So now the discovered Hosts will show up with the facts and can be provisioned.
So in our environment it would be nice to have the ability to exclude puppet from creating hosts from facts/reports. But the Discovery Plugin should be allowed to do this. Also it is a little bit confusing that the option under puppet is a global setting, not only for the puppet part...
Regards
Susanne