-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Release v0.7.4: Merge branch 'dev' of github.com:yantisj/netgrph
- Loading branch information
Showing
35 changed files
with
446 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.7.3 | ||
v0.7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# All development done on the dev branch | ||
|
||
# For release to master, checkout master, advance version, then pull from dev with no fast forward | ||
``` | ||
edit docs/VERSION | ||
git tag v0.7.x | ||
git merge --no-ff --log origin/dev | ||
git push origin master | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Ansible NetGrph Playbooks | ||
|
||
These playbooks will install NetGrph via Ansible on Ubuntu 14.04 or 16.04 for | ||
you. It will not set your database password or configure your netgrph.ini file | ||
for now, so you need to do that manually. Once the scripts run, browse to | ||
http://machine:7474 and setup your password. Set that same password in | ||
/home/netgrph/docs/netgrph.ini, and run the /home/netgrph/test/first_import.sh. | ||
|
||
#### Setting up Ansible to run via localhost | ||
|
||
``` | ||
sudo su - | ||
apt-get install ansible | ||
echo '[netgrph]' >> /etc/ansible/hosts | ||
echo localhost ansible_connection=local >> /etc/ansible/hosts | ||
exit | ||
``` | ||
|
||
#### Run playbooks against localhost (installs under netgrph user) | ||
|
||
``` | ||
git clone https://github.com/yantisj/netgrph.git /tmp/netgrph/ | ||
cd /tmp/netgrph/docs/playbooks/ | ||
ansible-playbook netgrph.yml --ask-sudo-pass | ||
``` | ||
|
||
#### Test the install | ||
|
||
``` | ||
sudo su - netgrph | ||
cd netgrph | ||
``` | ||
|
||
##### Use an insecure DB password for testing (not recommended) | ||
``` | ||
./test/set_neo4j_password.sh | ||
``` | ||
|
||
##### Test a database import | ||
``` | ||
./test/first_import.sh | ||
``` | ||
|
||
- See the INSTALL.md file for test queries and production install information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Configure your nguser account under vars: below | ||
# Add your server to [netgrph] in Ansible Hosts | ||
# Add your sudo user to [netgrp:vars] | ||
# ansible_ssh_user = yantisj | ||
|
||
- hosts: netgrph | ||
become: yes | ||
become_user: root | ||
vars: | ||
nguser: netgrph | ||
option_install_java: false | ||
option_allow_remote_connections: true | ||
neo4j_edition: neo4j | ||
|
||
neo4j_properties: | ||
- {regexp: "^allow_store_upgrade.*", line: "allow_store_upgrade=true"} | ||
|
||
tasks: | ||
- name: Update Apt Packages | ||
include: tasks/apt-update.yml | ||
|
||
- name: Apt Dependencies | ||
include: tasks/apt-packages.yml | ||
|
||
- name: Install Java8 | ||
include: tasks/java8.yml | ||
|
||
- name: Install Neo4j | ||
include: tasks/neo4j.yml | ||
|
||
- name: Add netgrph user | ||
include: tasks/netgrph-user.yml | ||
|
||
- name: Clone NetGrph Repo | ||
include: tasks/clonerepo.yml | ||
|
||
- name: Install PIP Requirements | ||
include: tasks/ngpip.yml | ||
|
||
- name: NetGrph Setup | ||
include: tasks/setup.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Configure your nguser account under vars: below | ||
# Add your server to [netgrph] in Ansible Hosts | ||
# Add your sudo user to [netgrp:vars] | ||
# ansible_ssh_user = yantisj | ||
|
||
- hosts: netgrph | ||
become: yes | ||
become_user: root | ||
vars: | ||
nguser: yantisj | ||
option_install_java: false | ||
option_allow_remote_connections: true | ||
neo4j_edition: neo4j | ||
|
||
neo4j_properties: | ||
- {regexp: "^allow_store_upgrade.*", line: "allow_store_upgrade=true"} | ||
|
||
tasks: | ||
- name: Update Apt Packages | ||
include: tasks/apt-update.yml | ||
|
||
- name: Apt Dependencies | ||
include: tasks/apt-packages.yml | ||
|
||
- name: Install Java8 | ||
include: tasks/java8.yml | ||
|
||
- name: Install Neo4j | ||
include: tasks/neo4j.yml | ||
|
||
- name: Clone NetGrph Repo | ||
become: yes | ||
become_user: "{{nguser}}" | ||
include: tasks/clonerepo.yml | ||
|
||
- name: Install PIP Requirements | ||
include: tasks/ngpip.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# file: update.yml | ||
- name: Install Apt Packages | ||
apt: name={{item}} state=present | ||
with_items: | ||
- python3-pip | ||
- python3-pytest | ||
- python3-logilab-common | ||
- emacs24-nox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
- name: Update Packages | ||
apt: update_cache=yes upgrade=dist dpkg_options='force-confold,force-confdef' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Clone NetGrph Repo | ||
git: repo=https://github.com/yantisj/netgrph dest=/home/{{nguser}}/netgrph | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: add repo for java 8 | ||
apt_repository: repo='ppa:webupd8team/java' state=present | ||
|
||
- name: set licence selected | ||
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | ||
sudo: yes | ||
|
||
- name: set licence seen | ||
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections | ||
sudo: yes | ||
|
||
- name: install java 8 | ||
apt: name=oracle-java8-installer state=latest update-cache=yes force=yes | ||
sudo: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# According to http://debian.neo4j.org/ | ||
--- | ||
- name: NEO4J | Add key for Neo4j repo | ||
apt_key: url=http://debian.neo4j.org/neotechnology.gpg.key state=present | ||
become: yes | ||
|
||
- name: NEO4J | Add Neo4j repo to sources list | ||
apt_repository: repo='deb http://debian.neo4j.org/repo stable/' state=present | ||
become: yes | ||
|
||
- name: NEO4J | Install Neo4j packages | ||
apt: pkg={{ item }} state=installed update_cache=yes force=yes | ||
become: yes | ||
with_items: | ||
- "{{neo4j_edition}}" | ||
|
||
# http://www.delimited.io/blog/2014/1/15/getting-started-with-neo4j-on-ubuntu-server | ||
|
||
- name: NEO4J | Update /etc/security/limits.conf file (1/2) | ||
lineinfile: dest=/etc/security/limits.conf | ||
insertbefore='# End of file' | ||
line='neo4j soft nofile 40000' | ||
state=present | ||
become: yes | ||
|
||
- name: NEO4J | Update /etc/security/limits.conf file (2/2) | ||
lineinfile: dest=/etc/security/limits.conf | ||
insertbefore='# End of file' | ||
line='neo4j hard nofile 40000' | ||
state=present | ||
become: yes | ||
|
||
- name: NEO4J | Update /etc/pam.d/su file | ||
lineinfile: dest=/etc/pam.d/su | ||
regexp="^session required pam_limits.so" | ||
insertafter='^# session required pam_limits.so' | ||
line="session required pam_limits.so" | ||
state=present | ||
become: yes | ||
|
||
# - name: NEO4J | Update /etc/neo4j/neo4j-server.properties to enable remote users to login to neo4j | ||
# lineinfile: dest=/etc/neo4j/neo4j-server.properties | ||
# regexp="^org.neo4j.server.webserver.address=0.0.0.0" | ||
# insertafter='^#org.neo4j.server.webserver.address=0.0.0.0' | ||
# line="org.neo4j.server.webserver.address=0.0.0.0" | ||
# state=present | ||
|
||
- name: NEO4J | Update /etc/neo4j/neo4j.conf to enable remote users to login to neo4j | ||
lineinfile: dest=/etc/neo4j/neo4j.conf | ||
regexp="^dbms.connector.http.address=0.0.0.0:7474" | ||
insertafter='^#dbms.connector.http.address=0.0.0.0:7474' | ||
line="dbms.connector.http.address=0.0.0.0:7474" | ||
state=present | ||
when: option_allow_remote_connections | ||
become: yes | ||
|
||
- name: NEO4J | Restart Neo4j | ||
service: name=neo4j state=restarted | ||
become: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- name: Install PIP Requirements via PIP3 | ||
pip: requirements=/home/{{nguser}}/netgrph/requirements.txt executable=pip3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# file: update.yml | ||
- name: APT | Install Apt Packages | ||
apt: name={{item}} state=present | ||
with_items: | ||
- python3-pip | ||
- python3-pytest | ||
- python3-logilab-common | ||
- emacs24-nox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
- name: APT | Update Packages | ||
apt: update_cache=yes upgrade=dist dpkg_options='force-confold,force-confdef' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: GIT | Clone NetGrph Repo | ||
git: repo=https://github.com/yantisj/netgrph dest=/home/{{nguser}}/netgrph | ||
become: yes | ||
become_user: "{{nguser}}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: JAVA | Add repo for java 8 | ||
apt_repository: repo='ppa:webupd8team/java' mode=664 state=present | ||
|
||
- name: JAVA | Set licence selected | ||
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | ||
|
||
- name: JAVA | Set licence seen | ||
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections | ||
|
||
- name: JAVA | Install java 8 | ||
apt: name=oracle-java8-installer state=latest update-cache=yes force=yes |
Oops, something went wrong.