我正在为 mongodb 开发一个 puppetmodule
这是我所拥有的(简化为基础知识):
模块/mongodb/manifests/virtual.pp:
class mongodb::virtual {
@package {['mongo-10gen-server','mongo-10gen']:
ensure => installed
}
模块/mongodb/manifests/replicaset.pp:
define mongodb::replicaset {
realize( Package['mongo-10gen-server','mongo-10gen'] )
}
很简单,但是当我在客户端上执行 puppetrun 时:
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
知道我的设置有什么问题吗?