0

我正在为 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

知道我的设置有什么问题吗?

4

1 回答 1

1

必须回答我自己的问题:S

这是一个典型的 layer8 错误:我忘记在 replicaset.pp 中包含 ::virtual 类

于 2013-03-06T10:11:05.723 回答