Linux 虚拟资源的构建与实现
我正在为mongodb开发一个木偶模块 以下是我所拥有的(精简到最基本的部分): 模块/mongodb/manifests/virtual.pp:Linux 虚拟资源的构建与实现,linux,puppet,Linux,Puppet,我正在为mongodb开发一个木偶模块 以下是我所拥有的(精简到最基本的部分): 模块/mongodb/manifests/virtual.pp: class mongodb::virtual { @package {['mongo-10gen-server','mongo-10gen']: ensure => installed } modules/mongodb/manifests/replicaset.pp: define mongodb::replicaset
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'] )
}
非常简单,但当我在客户端上执行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
知道我的设置有什么问题吗?必须回答我自己的问题:S 这是一个典型的第8层错误: 我忘了在replicaset.pp中包含::virtual类