| Lukas Zapletal Facter 4 documentation is in the works, but for your case please try facter.conf https://puppet.com/docs/facter/3.11/configuring_facter.html An example of facter.conf that works on facter 4 and should solve your issue
facts : { |
blocklist : [ "memory.swap" ] |
}
|
Just some context. You can block/cache groups of facts or individual facts. To see the groups of facts that you can block please use `facter --list-block-groups`. In addition to these groups you can block any fact, at any level of the fact hierarchy using the dot notation) e.g.
facts : { |
blocklist : [ "memory" ] |
}
|
- will block all memory facts
facts : { |
blocklist : [ "memory.swap" ] |
}
|
- will block all memory swap facts
facts : { |
blocklist : [ "memory.swap.available" ] |
}
|
- will block only the available fact from swap
There is even a more advance feature in Facter 4 that allows you to define your own groups and then block/cache them. Let me know if you are interested in this and I will provide more details. |