运行命令时
puppet apply --verbose --debug --modulepath puppet/manifests/modules
puppet/manifests/devbox.pp
我收到以下错误
err:/Stage[main]/Mongo-datastore/Package[mongodb]/ensure: change from absent to present failed:Could not find package mongo-10genmongo-10gen-server
要修复此错误,我手动安装了mongodb,并更改了以下软件包中的mongodb条目
name => ["mongodb-org-2.6.4.1""mongodb-org-2.6.4.1"]**
package {
"mongodb":
name => ["mongo-10gen", "mongo-10gen-server"],
ensure => installed,
require => File['/etc/yum.repos.d/10gen.repo'];
}
在我编写脚本以安装mongo-10gen和mongo-10gen-server之前,能告诉我为什么需要手动安装软件包。