This is an Ansible Playbook for deploying pSSID-database, an ELK stack configured for usage by pSSID, to a server. It installs Docker and then the ELK stack itself.
git clone https://github.com/UMNET-perfSONAR/ansible-playbook-pssid-database.git
cd ansible-playbook-pssid-database
cp .env.example .env
vi .env
ansible-vault encrypt .env
ansible-galaxy install -r requirements.yml
ansible-playbook playbook.yml \
-i IP_ADDR,
cp archiver.json.example archiver.json
vi archiver.json
(1.1.1.1
is used in place of the database server's IP address throughout.)
git clone
this repository.- Run
cp .env.example .env
,vi .env
, andansible-vault encrypt .env
to generate a.env
file. LeaveELASTIC_VERSION
and make the other settings random strings. - Run
ansible-galaxy install -r requirements.yml
to get the Playbook's dependencies. - Run
ansible-playbook playbook.yml -i 1.1.1.1,
to deploy to the target. Note the trailing comma.- Optionally append
-e 'destination=/my/path repository=git://my-repo'
to the command to override the default destination path and remote repository from which to deploy.
- Optionally append
- Give the stack roughly a minute to come up.
- Run
cp archiver.json.example archiver.json
and change out1.1.1.1
inarchiver.json
. Then, to test that archiving from pScheduler is working, runpscheduler task --archive @./archiver.json rtt --dest www.perfsonar.net
. - Open a browser and go to
http://1.1.1.1:5601/app/discover
. Log in with usernameelastic
and password as whatever you put as theELASTIC_PASSWORD
setting within.env
. If the page saysYou have data in Elasticsearch. Now, create a data view.
(as opposed toWelcome to Analytics!
) everything is set up correctly.