2013-06-28 97 views
3

你好,我已經在http://vmg.slynett.com/上生成了一個虛擬機。傀儡流浪者提供失敗

該vm工作正常,但沒有安裝它。 我不知道爲什麼流浪漢提供失敗。

vagrant provision 
[default] Running provisioner: Vagrant::Provisioners::Shell... 
stdin: is not a tty 
Europe/Paris 

Current default time zone: 'Europe/Paris' 
Local time is now:  Fri Jun 28 13:15:42 CEST 2013. 
Universal Time is now: Fri Jun 28 11:15:42 UTC 2013. 

[default] Running provisioner: Vagrant::Provisioners::Puppet... 
[default] Running Puppet with /tmp/vagrant-puppet/manifests/base.pp... 
stdin: is not a tty 
Warning: Could not retrieve fact fqdn 
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults 
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type concat at /tmp/vagrant-puppet/modules-0/apache/manifests/init.pp:130 on node dev 
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type concat at /tmp/vagrant-puppet/modules-0/apache/manifests/init.pp:130 on node dev 
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 --modulepath '/tmp/vagrant-puppet/modules-0' /tmp/vagrant-puppet/manifests/base.pp --detailed-exitcodes || [ $? -eq 2 ] 

我在Mac OS X 10.8.3,VirtualBox的4.2.6,1.2.2流浪

+0

你的文件init.pp在130行是什麼?更多的代碼將有所幫助 –

+0

init.pp:https://gist.github.com/shima5/5884040 Vagrantfile:https://gist.github.com/shima5/5884050 – rpg600

+0

它只有22行,在哪裏尋找行號130? :D –

回答

3

它看起來像你從ripenaar/concat指CONCAT模塊和類似的錯誤通常是當資源不存在時拋出(即未安裝或在您的模塊路徑中)。

+1

你是如何解決它的? – fenec

+1

我們永遠不會知道.. – mrmuggles

3

我通過將concatfile_concat木偶模塊添加到木偶模塊路徑來解決此問題。我通常都需要傀儡模塊,git的子模塊中的流浪者項目的puppet/modules,所以要加的concatfile_concat模塊,我做的:

git submodule add https://github.com/puppetlabs/puppetlabs-concat.git puppet/modules/concat 
git submodule add https://github.com/electrical/puppet-lib-file_concat.git puppet/modules/file_concat 

注意,concat模塊是從puppetlabs官方的一個和file_concat模塊是concat中使用的模塊(它應該被自動安裝,但這似乎不適用於我,也可能是您的問題)。