Skip to content

Ansible playbooks to install and configure Neo4j graph database.

License

Notifications You must be signed in to change notification settings

innomizetech/neo4j-ansible

Repository files navigation

Overview

Ansible playbooks to install and configure Neo4j graph database.

Installation

Execute the shell script in the extension directory to install and configure Ansible before running below commands

chmod +x extension/setup/setup.sh
./extension/setup/setup.sh

CLI

Encrypt/decrypt ansible vault file

A vault file contains sensitive information so that we shouldn't commit to source control in plaintext. So we need to encrypt it before committing to source control. Using Ansible vault so this problem.

Run below command to decrypt vault.yml file in the inventory directory

ansible-vault decrypt inventories/dev/group_vars/vault.yml --vault-password-file ansible-vault.pass

Make change required for your setting and encrypt using below command

ansible-vault encrypt inventories/dev/group_vars/vault.yml --vault-password-file ansible-vault.pass

Install and configure Neo4j Server

  • Install Neo4j single server by running below command

Run below command to deploy a single Neo4j instance for dev environment. Replace dev to any existing inventory in the inventories directory (i.e. staging, prod)

ansible-playbook neo4j.single.yml -e env=dev --vault-password-file ansible-vault.pass

#  or we can use -b -K to enter SUDO password (sudo su)
ansible-playbook neo4j.single.yml -e env=dev --vault-password-file ansible-vault.pass -b -K

NOTE - you shouldn't check in the ansible-vault.pass file to source control

About

Ansible playbooks to install and configure Neo4j graph database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages