puppetlabs / puppetdb

Centralized Puppet Storage
http://docs.puppetlabs.com/puppetdb
Apache License 2.0
298 stars 224 forks source link

facts-blocklist doesn't work as expected with modern facts (hash structure). #3975

Open sharewax opened 3 months ago

sharewax commented 3 months ago

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

Additional Context

https://github.com/puppetlabs/facter/issues/2713