我正在为mongodb的puppetmodule工作
以下是我所拥有的内容(摘要基础知识):
模块/ mongodb的/舱单/ virtual.pp:
class mongodb::virtual {
@package {['mongo-10gen-server','mongo-10gen']:
ensure => installed
}
模块/ mongodb的/舱单/ replicaset.pp:
define mongodb::replicaset {
realize( Package['mongo-10gen-server','mongo-10gen'] )
}
非常简单,但当我在客户端做一个小朋友时:
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/custom_facts.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to realize virtual resources Package[mongo-10gen-server], Package[mongo-10gen] on node mongonode
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
我的设置有什么问题吗?
答案 0 :(得分:1)
必须回答我自己的问题:S
这是典型的layer8错误: 我忘了在replicaset.pp
中包含:: virtual class