我想使用Puppet在Ubuntu 12.04 LTS(在Vagrant上運行)上安裝Node.js。在基本映像Puppet 2.7.19是預裝的,我想用wildurand/nodejs
module。使用Puppet在Ubuntu 12.04 LTS上安裝Node.js
所以我SSH進入流浪機,和類型:
$ puppet module install wildurand/nodejs
然後,木偶失敗,出現以下錯誤消息:
Preparing to install into /home/vagrant/.puppet/modules ...
Error: Could not install module 'wildurand-nodejs' (latest)
Directory /home/vagrant/.puppet/modules does not exist
所以,我創建使用該文件夾中:
$ mkdir -p /home/vagrant/.puppet/modules
然後,我再次運行命令來安裝模塊。現在,它失敗,一個新的錯誤消息:
Preparing to install into /home/vagrant/.puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Error: Could not find release information for this module (wildurand/nodejs)
(HTTP 410)
Error: Try 'puppet help module install' for usage
根據維基百科,HTTP狀態代碼410意味着Gone
,所以顯然它不能再找到該模塊。爲什麼是這樣?
除此之外:爲什麼Puppet抱怨丟失的文件夾? Puppet需要手動創建文件夾是否真的是我的任務?
而且,最後一個問題:是否有更好的方法來使用Puppet安裝Node.js比我試過的更好?
非常感謝你,男人:-) –
PS:我會獎勵賞金,但它還不可能... –
沒問題,也謝謝!讓我知道如果你遇到任何問題:) –