Automatically remove missing network interfaces when using Puppet facts
When configured to do so, Foreman uses the Puppet facts to declare network interfaces which is pretty convenient, especially when handled hosts get declared via a Puppet run.
The thing is that, with machines having dynamic interfaces (say hypervisors with net tap or bridges), network list keeps growing over time.
It would be nice to remove network interfaces declared in Foreman that are not present in the Puppet facts.
Also, avoid adding duplicate entries with the same name (multiple eth0 entries with different mac, ipaddress).
#1 Updated by Marek Hulán over 6 years ago
- Status changed from New to Duplicate
Thanks for the report. I agree that this would be handy but it should be implemented with some flag that would tell that the interface was created by puppet so we don't remove interfaces explicitly set by user. I believe this was already reported as #7472 so I'm closing this as a duplicate. Please upvote the linked issue.