我在为mongodb开发木偶模块
以下是我所拥有的(简而言之):
模块/mongodb/manifests/virtual.pp:
class mongodb::virtual {
@package {['mongo-10gen-server','mongo-10gen']:
ensure => installed
}
modules/mongodb/manifests/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
知道我的设置有什么问题吗?
最佳答案
必须回答我自己的问题:S
这是一个典型的第8层错误:
我忘了在replicaset.pp中包含::virtual类
关于linux - 伪造并实现虚拟资源,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15243831/