Skip to content

Commit

Permalink
adding first role: app_base
Browse files Browse the repository at this point in the history
adding nodejs submodule
adding custom nodejs support
  • Loading branch information
jondot committed Feb 1, 2012
1 parent 85cce47 commit 65edcfd
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "nodejs"]
path = nodejs
url = https://github.com/mdxp/nodejs-cookbook.git
1 change: 1 addition & 0 deletions nodejs
Submodule nodejs added at bc4f99
Empty file added nodejs-support/README.md
Empty file.
9 changes: 9 additions & 0 deletions nodejs-support/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
maintainer "Dotan Nahum"
maintainer_email "jondotan@gmail.com"
license "MIT"
description "Adds nodejs supporting packages"
version "0.1.0"
recipe "nodejs-support", "Adds nodejs supporting packages"

depends "nodejs::npm"

4 changes: 4 additions & 0 deletions nodejs-support/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include_recipe "nodejs::npm"
execute "npm install forever -g" do
not_if "test `which forever`'"
end
13 changes: 13 additions & 0 deletions roles/app_base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"description": "A base application server roles. A foundation app server should contain java, ruby, node, python, perl; as well as supporting libraries (image magick)",
"run_list": [
"recipe[image_magick]",
"recipe[java]",
"recipe[nodejs]"
],
"java" : {
"install_flavor" : "oracle"
}
}


0 comments on commit 65edcfd

Please sign in to comment.