问题原文
原帖链接 · Zoredache · CC BY-SA 3.0
Is there a method to filter which plugins are being syncd? I have a few new modules downloaded from the forge (puppetboard,puppetdb,python). These modules include plugins, they are also only needed on the puppet master, the plugins are not needed on any of my clients.
Unfortunately the facter plugins within these modules are causing the puppet client to fail on some older systems that I cannot upgrade to the latest version of ruby/puppet/facter. These older systems are running legacy software that cannot run on a newer OS release without a insanely painful amount of hackery. All the rest of the rest of my plugins and custom facts work perfectly fine. So I want to keep plugin sync, but exclude these facts that are breaking the older systems.
Has anyone come up with a good method for partial plugin sync? I am not finding any solutions in my searches.
已采纳解答
原帖链接 · Steven · CC BY-SA 4.0
There is no way to filter plugins.
But as you say in your comment, you need to write the facts/types to handle the OS they're running on. For types and providers you exit early.
For facts you can use confine.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
