Ansible playbooks to install and configure Neo4j graph database.
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
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 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