michaelklishin / neo4j-server-chef-cookbook

Chef cookbook for Neo4J Server (Community Edition)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Neo4J Server Chef Cookbook

This is an OpsCode Chef cookbook for Neo4J Server (Community or Enterprise edition).

It uses officially released tarballs to install Neo4J under /usr/local/neo4j-server, provides Upstart service script and allows you to tweak many parameters using Chef node attributes.

Neo4J Server Version

This cookbook currently provides Neo4J Server 2.2 (Community Edition by default, Enterprise if you opt in) but can be used to install other versions by overriding data bag attributes.

Recipes

Main recipe is neo4j-server::tarball.

Attributes

All the attributes below are namespaced under node[:neo4j][:server], so :version is accessible via node[:neo4j][:server][:version] or node.neo4j.server.version and so on.

  • :version: Neo4J Server version to install (default: a recent 2.1.x release)
  • :installation_dir: installation location (default: /usr/local/neo4j-server)
  • :user: OS user Neo4J Server will be using (default: neo4j)
  • :uid: OS uid Neo4J Server will use (default: nil)
  • :lib_dir: Neo4J libraries location (default: /var/lib/neo4j-server/)
  • :data_dir: graph database location (default: /var/lib/neo4j-server/data/graph.db)
  • :conf_dir: configuration directory location (default: /usr/local/neo4j-server/conf)
  • :lock_path: .lock file location (default: /var/run/neo4j-server.lock)
  • :pid_path: .pid file location (default: /var/run/neo4j-server.pid)
  • [:jvm][:xmx]: maximum allowed JVM heap size, in MB (-Xmx JVM flag value) (default: 512)
  • [:host]: what interface (or host) should HTTP transport listen on (default: 0.0.0.0)
  • [:http][:port]: what port should HTTP transport listen on (default: 7474)
  • [:https][:enabled]: whether HTTPS transport is enabled (default: true)
  • [:remote_shell][:port]: remote_shell_port (default: 1337)

Enterprise Attributes

  • :edition: Set to :enterprise in order to use enterprise distribution and options (default: :community)
  • [:ha][:enabled]: Set to true to enable high availability (default: false)
  • [:ha][:server_id]: The server_id used for HA setup (default: 1)
  • [:ha][:initial_hosts]: A comma separated list of other host:port pairs in the cluster (default: nil)

Plugins

Spatial Plugin

  • :[plugins][:spatial][:enabled]: is the Spatial plugin enabled? (default: true)
  • :[plugins][:spatial][:url]: Spatial plugin archive URL
  • :[plugins][:spatial][:version]: Spatial plugin version (default: 0.9-SNAPSHOT)
  • :[plugins][:spatial][:md5]: Spatial plugin archive MD5 checksum

Dependencies

Either JDK 7 (OpenJDK 7 or Oracle JDK 7). Neo4J Server 1.9+ requires JDK 7.

Copyright & License

Michael S. Klishin, Alex Petrov, 2012-2015.

Released under the MIT license.

About

Chef cookbook for Neo4J Server (Community Edition)


Languages

Language:HTML 49.1%Language:Ruby 46.4%Language:Shell 4.4%