2013-07-10 56 views
2

我想在流浪的設置中使用傀儡模塊。在解決這個stackoverflow question這個問題時,我試圖解決這個問題。 我克隆木偶模塊回購(APT模塊和的NodeJS模塊)插入設置木偶模塊路徑在vagrantfile使用傀儡模塊直接從一個克隆的回購

子文件夾 幷包括木偶模塊和調用它們在木偶清單文件,例如:

class { 'apt': 
} 
include apt 

class{ 'apt':} -> apt::builddep { ["python-imaging","python-lxml"]: 
    require => Class['apt'] 
} 

我想知道,也許有一個安裝/構建步驟,我錯過了當我只是git clone回購?這甚至有可能做到嗎?

錯誤消息:

←[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 ] 
+1

我遇到了一個與此非常相似的問題,我注意到的一件事是,克隆的repo被命名爲「puppetlabs-nodejs」,但我不得不將其重命名爲'nodejs',否則我的傀儡應用程序無法找到它。 – Nucleon

回答