Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ansible
docs
notebooks
public
resources/images/digits
.gitignore
README.md

README.md

raspifarm

This repository contains scripts, configuration files and services for the raspi.farm project (Cluster with Raspberry Pi). You can find more information about the project on http://raspi.farm.

Contents

  • Configuration files for
    • dnsmasq
    • Apache (vhosts)
    • snmpd
  • Ansible playbooks
  • Welcome page
  • Documentation as Jekyll Project (source for http://raspi.farm)
  • Raspidog (Monitoring Tools)

Prerequisites

Ansible for the Ansible stuff (Installing Master and Slaves)

Download this repo to your master node

Login as farmer, change to the home directory and clone this project:

cd ~
git clone https://github.com/lxxxvi/raspifarm.git ~/raspifarm/

It's important that the checked out content goes into ~/raspifarm !

Ansible Playbooks

Install master node

Login with farmer user, run the master playbook

ansible-playbook -i ~/raspifarm/ansible/raspifarm-inventory ~/raspifarm/ansible/playbooks/raspifarm-master-essentials.yml

This will install and/or configure

  • RubyGems
  • dnsmasq
  • Apache HTTPD
  • nodejs
    • npm (package manager for node.js)
    • pm2 (process manager for node.js, used for raspidog)
  • Raspidog

Install slave nodes

Login with farmer user, run the slaves playbook

ansible-playbook -i ~/raspifarm/ansible/raspifarm-inventory ~/raspifarm/ansible/playbooks/raspifarm-slaves-essentials.yml

This will install and/or configure on all slave nodes

  • SNMPD

Intranet

In order to use the Intranet you have to use 192.168.17.1 as your DNS-server.

Find all webservices on http://start.raspifarm

Service URL Address without URL
Startpage *.raspifarm none
Raspidog dog.raspifarm 192.168.17.1:3002
JupyterHub jupyterhub.raspifarm 192.168.17.1:8000

dog.raspifarm

For the monitoring tool, SNMPD has to be installed on the slaves (see "Install slave nodes" above).
Basically, the URL http://dog.raspifarm should be available after installing the master-essentials with Ansible (see above). pm2 is supposed to start the node server automatically. If the URL does not work, try the following:

cd ~/raspifarm/public/raspidog/
node ./raspidog.js

Then open 192.168.17.1:3002. If this works, abort the process and check if raspidog-server is running in pm2:

pm2 status

If not, try start it with:

pm2 start ~/raspifarm/public/raspidog/raspidog.js

JupyterHub

JupyterHub has to started manually in a seperate console:

sudo jupyterhub --no-ssl --port 8000

After that it should be reachable at 192.168.17.1:8000 or http://jupyterhub.raspifarm

You can’t perform that action at this time.