-
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.
Cleaned up Ansible Documentation for v0.7.4
- Loading branch information
Showing
3 changed files
with
40 additions
and
15 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
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 |
---|---|---|
@@ -1,25 +1,44 @@ | ||
## Ansible NetGrph Playbooks | ||
|
||
These playbooks will install 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. | ||
|
||
### Running Ansible via localhost | ||
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 '[netgrph]' >> /etc/ansible/hosts | ||
echo localhost ansible_connection=local >> /etc/ansible/hosts | ||
exit | ||
``` | ||
|
||
#### Run ansible on localhost | ||
#### 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 |