我正试图从puphpet创建的配置文件中填充一个盒子 - 这在我的Yosemite 10.10 Macbook Air上运行了几个星期 - 但刚刚重新加载配置以添加另一个vhost到apache,我现在在运行vagrant时出现以下错误
==> 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'
任何人都可以解释为什么我突然得到这个错误吗?
答案 0 :(得分:1)
使用VAGRANT_LOG=info vagrant up
等内容检查您的日志。
在我们的案例中,vagrant抱怨未签名rvm
安装(> = 1.26),因此我们必须在init脚本中下载密钥,例如:
command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -
但错误可能因您而异。