大网数据广告活动
服务器运维问答

Filter puppet pluginsync

· 52CE 我爱测

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 plugi…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-03-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。