Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vagrant up上的Vagrant heira_配置错误_Vagrant_Puppet_Puphpet - Fatal编程技术网

Vagrant up上的Vagrant heira_配置错误

Vagrant up上的Vagrant heira_配置错误,vagrant,puppet,puphpet,Vagrant,Puppet,Puphpet,我正试图从puphpet创建的配置文件中漫游到一个框中——这在我的Yosemite 10.10 Macbook Air上已经运行了好几个星期了——但刚刚重新加载配置以向apache添加另一个vhost,我现在在运行漫游时遇到以下错误 ==> default: Installing Puppet requirements ==> default: /tmp/vagrant-shell: line 54: /usr/bin/gem: No such file or directory =

我正试图从puphpet创建的配置文件中漫游到一个框中——这在我的Yosemite 10.10 Macbook Air上已经运行了好几个星期了——但刚刚重新加载配置以向apache添加另一个vhost,我现在在运行漫游时遇到以下错误

==> default: Installing Puppet requirements
==> default: /tmp/vagrant-shell: line 54: /usr/bin/gem: No such file or directory
==> default: Finished installing Puppet requirements
==> default: Installing Puppet 3.4.3
==> default: /tmp/vagrant-shell: line 58: /usr/bin/gem: No such file or directory
==> default: Finished installing Puppet 3.4.3
==> default: Running provisioner: puppet...
==> default: Running Puppet with site.pp...
==> default: stdin: is not a tty
==> default: Could not parse options: invalid option: --hiera_config
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
我使用的是一个
hashicorp/precise64
base框,我的木偶配置是:

provision:
            puppet:
                manifests_path: puphpet/puppet
                manifest_file: site.pp
                module_path: puphpet/puppet/modules
                options:
                    - '--verbose'
                    - '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'
                    - '--parser future'

有人能解释一下我为什么突然出现这个错误吗?

用类似于
VAGRANT\u LOG=info VAGRANT up
的东西检查你的日志

在我们的例子中,vagrant抱怨未签名的
rvm
安装(>=1.26),因此我们必须在init脚本中下载密钥,如:

command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -

但是错误可能因您的情况而异。

删除heira_config行会导致进一步的错误,我对puppet/vagrant的了解也不够,无法修复这些错误!在尝试了几个不同的基本盒之后,我让它与puphpet/ubuntu1204-x64一起工作-它似乎在任何14.04基本盒上都失败了,但在12.04基本盒上工作正常这很奇怪。Puppet
3.4.3
具有该选项。那些
gem
错误令人不安。也许这个问题与他们有关。非常奇怪-@FelixFrank我有一种感觉,它与gem问题有关,尽管/usr/bin/gem确实存在(尽管可能不是在流浪的上升过程中)