Problem: Puppet registers a lot of testing machines in our Foreman. Those can be easily queried. Is it possible to run something like a “delete hosts” job regularly?
Foreman and Proxy versions: 2.0.0
Foreman and Proxy plugin versions: 2.0.0
Problem: Puppet registers a lot of testing machines in our Foreman. Those can be easily queried. Is it possible to run something like a “delete hosts” job regularly?
Foreman and Proxy versions: 2.0.0
Foreman and Proxy plugin versions: 2.0.0
No ideas here?
What’s the easiest approach here?
I’d say run an Ansible job when Puppet is done to remove the test hosts with this module: https://docs.ansible.com/ansible/2.10/collections/theforeman/foreman/host_module.html#ansible-collections-theforeman-foreman-host-module
Ok. So now chance using Foreman internal mechanisms.
Is there maybe a way to avoid the registration for specific hosts that matches for example name patterns?
I’ve asked a new question for this Avoid registration in Foreman - #2 by Marek_Hulan