Commit 98e39a0f by Ben Patterson

Neo4j community edition role

This will install the community edition of neo4j and configure it
to run on particular ports, but listen to all IPs. The debian package
installs it as a service under 'neo4j-service'. See vars for
additional info on where the properties files are located.
parent df079a0c
---
#
# Adds the latest stable package of neo4j community edition
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role neo4j
#
#
# vars are namespaced with the module name.
#
neo4j_role_name: neo4j
neo4j_gpg_key_url: https://debian.neo4j.org/neotechnology.gpg.key
neo4j_apt_repository: "deb http://debian.neo4j.org/repo stable/"
neo4j_server_config_file: "/etc/neo4j/neo4j-server.properties"
neo4j_https_port: 8081 # default is 7473
neo4j_http_port: 8080 # default is 7474
---
- name: restart neo4j
service: name=neo4j-service state=restarted
---
dependencies:
- common
- role: oraclejdk
oraclejdk_version: "8u60"
oraclejdk_base: "jdk1.8.0_60"
oraclejdk_build: "b27"
oraclejdk_link: "/usr/lib/jvm/java-8-oracle"
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role neo4j
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
- name: add neo4j gpg key
apt_key:
url={{ neo4j_gpg_key_url }}
state=present
- name: add neo4j apt repository
apt_repository:
repo="{{ neo4j_apt_repository }}"
state=present
- name: install neo4j
apt:
name=neo4j
state=present
- name: set to listen on all IPs
lineinfile:
dest="{{ neo4j_server_config_file }}"
regexp="org.neo4j.server.webserver.address="
line="org.neo4j.server.webserver.address=0.0.0.0"
state=present
notify: restart neo4j
- name: set to listen on specific port for https
lineinfile:
dest="{{ neo4j_server_config_file }}"
regexp="org.neo4j.server.webserver.https.port="
line="org.neo4j.server.webserver.https.port={{ neo4j_https_port }}"
notify: restart neo4j
- name: set to listen on specific port for http
lineinfile:
dest="{{ neo4j_server_config_file }}"
regexp="org.neo4j.server.webserver.port="
line="org.neo4j.server.webserver.port={{ neo4j_http_port }}"
notify: restart neo4j
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment