puppetdb icon indicating copy to clipboard operation
puppetdb copied to clipboard

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

Open sharewax opened this issue 9 months ago • 0 comments

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

sharewax avatar May 07 '24 21:05 sharewax