facts-blocklist doesn't work as expected with modern facts (hash structure).
Describe the Bug
I'm trying to reduce database size and not to store facts which are not needed in puppetdb. For example - info in networking.interfaces for dynamic/virtual links (calico, veth, docker etc). Currently it's impossible to block it with current filters.
I have in config for example:
facts-blocklist-type = regex
facts-blocklist = networking.interfaces.cali.*, networking.interfaces.veth.*, networking.interfaces.docker.*, networking.interfaces.macvtap.*, networking.interfaces.vnet.*, networking.interfaces.tunl.*
But this facts are still present in puppetdb. I've explained a little bit more in https://github.com/puppetlabs/facter/issues/2713
Expected Behavior
I would like to have possibility to exclude storage some facts in puppetdb with modern structure (Hash) with regex support.
Environment
- Version 7.15.0
- Platform CentOS7
Additional Context
https://github.com/puppetlabs/facter/issues/2713
I was getting frustrated with the blocklist as I was actually expecting it to work with structured facts... until I found this issue and then lost hope for the feature.
I needed the feature to exclude exactly the same type of structured facts as you do...