-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make facts export optional #90
Comments
wanted to make an issue for this, but found it :) yes puppet is now complaining because of too many facts. this module seems to be the culprit (for me) please make it optional as not really needing it, by default. |
Hi and thanks for your work on this module :) We also encountered this issue here:
I agree with the previous messages, it would be really nice to be able to restrict facts to managed modules, or even completely disable these facts with a parameter. |
Facts can not be enabled/disabled using parameters. Once you include a module with a custom fact it will get deployed to all Puppet agents using plugin sync. That is not something you can turn off selectively. Generally speaking facts don't know what's managed and unmanaged in Puppet so only doing modules that are part of Puppet isn't really possible either. There are a few options. One you could increase the number of facts your system allows: https://www.puppet.com/docs/puppet/7/configuration.html#number-of-facts-soft-limit Another option is to attempt to disable the facts on the Puppet agent host using block list: https://www.puppet.com/docs/puppet/7/configuring_facter.html#configuring_facter-facter-conf-facts |
@treydock Yes not directly, but facter code is processed locally and you can read configuration stored e.g. in a local config file. |
Yes @deric , that's exactly what I meant: configuring the fact using a local config file 👍 |
Idea:
This means that the kmod facts will be available on a second puppet agent run only. |
On a Debian installation I'm currently seeing almost 1k facts from
kmod
module$ facter -y --puppet kmods | wc -l 973
Puppet 7 is preconfigured with soft limit for facts set to
2048
.Combining default puppet facts with
kmod
facts can easily exceed this soft limit. Of course the limit can be increased, but I guess the main reason is performance. Currently I find little usagekmod
facts. E.g. would it be possible to export only managed modules?The text was updated successfully, but these errors were encountered: