使用MCollective一次在多个系统上发出命令

目标

其目的是使用MCollective一次性在多个系统上执行命令,例如,使用MCollective-client在所有MCollective服务器上创buildtouch /tmp/helloworld :系统1,2和3。

尝试

根据这个文件 ,mcollective-shell-agent可以用来完成这个目标。 但是,执行:

 mco rpc shell start ls -I /system/ 

结果是:

 Could not parse --arg ls 

发行:

 mco rpc shell --help 

显示一个通用的帮助菜单,而不是关于哪个参数应该被使用的特定菜单。

问题

  1. 为什么不能运行mco rpc shell命令?
  2. 那么这个假设是应该使用mcollective-shell-agent来实现目标还是这个不正确? 如果真的应该安装哪个软件包?

一张票是在PuppetLabs上创build和回答的:

mco rpc shell start command=ls -I /system/应该发出而不是mco rpc shell start ls -I /system/