1

我正在尝试从 puphpet 创建的配置文件中流浪一个盒子——它在我的 Yosemite 10.10 Macbook Air 上运行了几个星期——但是刚刚重新加载配置以向 apache 添加另一个虚拟主机,我现在得到了运行 vagrant up 时出现以下错误

==> 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基本盒子,我的木偶规定是:

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'

谁能解释为什么我突然收到这个错误?

4

1 回答 1

1

用类似的东西检查你的日志VAGRANT_LOG=info vagrant up

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

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

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

于 2014-11-18T13:09:06.720 回答