使用 puppet 版本 3.4.3
已设置 mcollective 和 puppet。
对于 puppet 设置,我在 10 分钟的 cron 中运行 puppet apply 如下(如 puppet 3 食谱中所述):
PUPPETDIR=/home/ec2-user/puppet
/usr/bin/puppet apply --modulepath ${PUPPETDIR}/modules ${PUPPETDIR}/manifests/site.pp
就 mcollective 而言,我可以从以下两个命令(粗体)成功获取 o/p:
# mco puppet summary
Summary statistics for 1 nodes:
Total resources: ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ min: 24.0 max: 24.0
Out Of Sync resources: ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ min: 3.0 max: 3.0
Failed resources: ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ min: 0.0 max: 0.0
Changed resources: ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ min: 3.0 max: 3.0
Config Retrieval time (seconds): ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ min: 1.4 max: 1.4
Total run-time (seconds): ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ min: 3.2 max: 3.2
Time since last run (seconds): ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ min: 1.8k max: 1.8k
# puppet --version
3.4.3
# mco rpc puppet last_run_summary
Discovering hosts using the mc method for 2 second(s) .... 1
* [ ============================================================> ] 1 / 1
awo-p03-adm01
Changed Resources: 3
Config Retrieval Time: 1.376637
Config Version: 1398141604
Failed Resources: 0
Last Run: 1398141611
Last Run Logs: {}
Out of Sync Resources: 3
Since Last Run: 2208
Summary: {"resources"=>
但是,当我使用命令“puppet runonce”时,我无法让 puppet 按预期运行。
有人可以指导我准确设置 mcollective 来管理无主木偶吗?