Permalink
Browse files

implemented nodejs installation form ppa archive

  • Loading branch information...
mhutter committed May 13, 2012
1 parent 770e8d7 commit f16753994ec224b9c98c6d41de819c4fe0f6dd7a
Showing with 10 additions and 1 deletion.
  1. +10 −1 cookbooks/main/recipes/default.rb
@@ -34,5 +34,14 @@
end
if node[:features][:nodejs]
- # TODO
+ include_recipe "apt"
+ apt_repository "node.js" do
+ uri "http://ppa.launchpad.net/chris-lea/node.js/ubuntu"
+ distribution node['lsb']['codename']
+ components ["main"]
+ keyserver "keyserver.ubuntu.com"
+ key "C7917B12"
+ end
+ execute "apt-get update"
+ package "nodejs"
end

0 comments on commit f167539

Please sign in to comment.