Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个名为“foo”的 MCollective 代理,动作为“bar”,在动作的逻辑中,当事实“鸡”为“真”时我想做 X,当事实“牛肉”为真时做 Y .
基本上,您如何从 MCollective 代理访问事实?
您可以访问配置的事实源,例如:
if PluginManager["facts_plugin"]["yourfact"] == "foo" # do something else # do something else end
在您需要访问事实的代理中的任何地方执行此操作。
hth,如果不是,请在 google 群组的 mcollective 用户列表中询问