Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
edweip3 committed Apr 30, 2014
0 parents commit 847cedb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
site :opscode
cookbook 'java'
cookbook 'neo4j-server', github: 'edweip3/neo4j-server-chef-cookbook'
5 changes: 5 additions & 0 deletions mappedin-neo4j/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node.default['java']['jdk_version'] = 7
node.default['java']['accept_license_agreement'] = true

node.default[:neo4j][:server][:data_dir] = '/mnt/disk1/neo4j/data/graph.db'
node.default[:neo4j][:server][:lib_dir] = '/mnt/disk1/neo4j'
7 changes: 7 additions & 0 deletions mappedin-neo4j/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name "mappedin-neo4j"
description "cookbook to install neo4j"
maintainer "Ed"
license "Apache 2.0"

depends 'java'
depends 'neo4j-server'
2 changes: 2 additions & 0 deletions mappedin-neo4j/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include_recipe "java"
include_recipe "neo4j-server::tarball"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
check host node_web_app_<%= @application_name %> with address 127.0.0.1
every 10 cycles
start program = "/bin/sh -c 'cd <%= @deploy[:deploy_to] %>/current; /usr/bin/env NODE_PATH=<%= @deploy[:deploy_to] %>/current/node_modules:<%= @deploy[:deploy_to] %>/current /usr/local/bin/node <%= @monitored_script %>'"
stop program = "/usr/bin/pkill -f 'node <%= @monitored_script %>'"
if failed port 80 protocol HTTP
request /
with timeout 10 seconds
then restart

0 comments on commit 847cedb

Please sign in to comment.