2014-11-04 123 views
1

我試圖從一個箱子,從配置文件創建的puphpet - 這一直工作正常我的優勝美地10.10 Macbook Air幾個星期 - 但剛剛重新配置到添加其他虛擬主機到Apache,我現在運行的流浪漢最多時流浪heira_config錯誤上流浪

==> 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底盒得到以下錯誤(S),和我的傀儡規定是:

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

刪除heira_config行會導致更多的錯誤,並且我不太瞭解puppet/vagrant來修復這些錯誤! – 2014-11-04 15:00:44

+0

已經嘗試了幾個不同的基盒,我得到它與puphpet/ubuntu1204-x64一起工作 - 它似乎在任何14.04盒子上都失敗了,但是在12.04盒子下工作正常 – 2014-11-05 10:57:29

+0

這很奇怪。木偶'3.4.3'有這個選項。那些'寶石'錯誤令人不安。也許這個問題與他們有關。 – 2014-11-05 23:39:16

回答

1

用類似VAGRANT_LOG=info vagrant up的東西檢查您的日誌。

在我們的例子流浪漢在抱怨無符號rvm安裝(> = 1.26),所以我們必須下載關鍵在我們的init腳本,如:

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

但該錯誤可能改變你的案件。

+0

我通過手動導入密鑰解決了問題。 – 2014-12-01 04:06:01