Vagrant 直接从克隆的repo中使用puppet模块

Vagrant 直接从克隆的repo中使用puppet模块,vagrant,puppet,Vagrant,Puppet,我试图在一个流浪设置中使用木偶模块。在一次实验中,我试图解决这个问题。 我将puppet模块repo(apt模块和nodejs模块)克隆到一个子文件夹中 在文件中设置木偶模块路径 并包括傀儡模块,并在傀儡清单文件中调用它们,例如: class { 'apt': } include apt class{ 'apt':} -> apt::builddep { ["python-imaging","python-lxml"]: require => Class['apt']

我试图在一个流浪设置中使用木偶模块。在一次实验中,我试图解决这个问题。 我将puppet模块repo(apt模块和nodejs模块)克隆到一个子文件夹中 在文件中设置木偶模块路径

并包括傀儡模块,并在傀儡清单文件中调用它们,例如:

class { 'apt':
}
include apt

class{ 'apt':} -> apt::builddep { ["python-imaging","python-lxml"]:
    require => Class['apt'] 
 }
我想知道,当我只是
git clone
repo时,可能缺少了一个安装/构建步骤?这可能吗

错误消息:

←[0;37mdebug: importing '/tmp/vagrant-puppet/modules-0/apt/manifests/init.pp' in
 environment production←[0m
←[0;37mdebug: Automatically imported apt from apt into production←[0m
←[0;37mdebug: importing '/tmp/vagrant-puppet/modules-0/apt/manifests/params.pp'
in environment production←[0m
←[0;37mdebug: Automatically imported apt::params from apt/params into production
←[0m
←[0;37mdebug: importing '/tmp/vagrant-puppet/modules-0/apt/manifests/update.pp'
in environment production←[0m
←[0;37mdebug: Automatically imported apt::update from apt/update into production
←[0m
Unknown function validate_bool at /tmp/vagrant-puppet/modules-0/apt/manifests/in
it.pp:36 on node precise32
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

cd /tmp/vagrant-puppet/manifests && puppet apply --verbose --debug --modulepath
'/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' default.pp --detailed-exitco
des || [ $? -eq 2 ]

您缺少
stdlib
模块,该模块至少是
apt
模块的一个依赖项,它提供了无法找到的
validate\u bool
函数

您可以在这里找到
stdlib
模块:

使用Puppet模块安装工具,而不仅仅是克隆单个repo


或者最好使用图书管理员puppet。

我有一个与此非常类似的问题,我注意到克隆的回购协议名为
puppetlabs nodejs
,但我必须将其重命名为
nodejs
,否则我的puppet apply将无法找到它。