Skip to content

marhan/rpi-cluster-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi 3 configuration management with Ansible

Work in progress!

Flash SD Cards

Image: Raspbian

Flash tool: Github hypriot/flash

$ curl -L https://downloads.raspberrypi.org/raspbian_lite_latest -o raspbian.zip
$ ./flash raspbian.zip

Initial login data after boot

username: pi, password: raspberry

Playbooks

network.yml

$ ansible-playbook network.yml --ask-pass

Last task is rebooting the systems. The RPIs will be accessible by the new IP.

common.yml

$ ansible-playbook common.yml --ask-pass

docker.yml

http://hostname:9000/

jenkins.yml

Helpful commands

Log into running container

docker exec -i -t CONTAINER_NAME_OR_ID /bin/bash

Search for file content

grep --color=auto -nsH 'CONTENT' *

Find network addresses in the neighborhood

arp -a -n

Add user to docker group

sudo usermod -aG docker jenkins

Ubuntu to Debian comparison

Ubuntu number Ubuntu name Debian name

16.04

xenial

stretch / sid

15.10

wily

jessie / sid

15.04

vivid

jessie / sid

14.10

utopic

jessie / sid

14.04

trusty

jessie / sid

13.10

saucy

wheezy / sid

13.04

raring

wheezy / sid

12.10

quantal

wheezy / sid

12.04

precise

wheezy / sid

11.10

oneiric

wheezy / sid

11.04

natty

squeeze / sid

10.10

maverick

squeeze / sid

10.04

lucid

squeeze / sid

About

Ansible playbooks for clustering docker on raspberry pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published