Created attachment 185469 [details]
Add make config option to remove ec2 facts
the latest rubygem-facter (2.5.0) tries to communicate with a Amazon web page (169.254.169.254) for any virtual machine of type xen or kvm.
On my RootBSD VPS we see this timing:
2>time facter > /dev/null
After the attached patch is applied the timings return to normal:
3>time facter > /dev/null
The patch add an option to remove the ec2 facts from the facter install, following the same steps available to remove the zfs/zpool facts.
I had the same problem on my bhyve virtual machines (all FreeBSD). Disabling EC2 facts solved the problem, facter show the facts within milliseconds instead of minutes.
IMHO EC2 facts should be disabled by default as well as ZFS facts.
A commit references this bug:
Date: Wed Nov 8 11:53:50 UTC 2017
New revision: 453731
sysutils/rubygem-facter: add AWS EC2 facts option
On machines that are not running in AWS EC2 cloud running facter was
taking very long time trying to gather information that wasn't there.
This change adds an option allowing to disable such facts in similar manner
to ZFS related facts.
Submitted by: pirzyk