【问题标题】:Vagrant provision fail with puppet流浪者的供给因傀儡而失败
【发布时间】:2015-06-15 06:26:50
【问题描述】:

您好,我在http://vmg.slynett.com/ 上生成了一个虚拟机。

虚拟机工作正常,但没有安装任何东西。 我不知道为什么流浪者提供失败。

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、Vagrant 1.2.2 上

【问题讨论】:

标签: vagrant puppet


【解决方案1】:

您似乎在引用来自 ripenaar/concat 的 concat 模块,并且当资源不存在(即未安装或在您的模块路径中)时通常会引发类似的错误。

【讨论】:

    【解决方案2】:

    我通过将concatfile_concat puppet 模块添加到puppet 模块路径来解决这个问题。我通常在 vagrant 项目的 puppet/modules 中将所有需要的 puppet 模块作为 git 子模块,所以要添加 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 中使用的模块(它应该自动安装,但这似乎对我不起作用,可能是你的问题也是)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-06
      相关资源
      最近更新 更多