Skip to content

I don't have an electric bill. I did the right thing and have a data center in my living room :) I use ansible to manage the infrastructure

Notifications You must be signed in to change notification settings

brycemcd/home-datacenter-ansible

Repository files navigation

Ansible Playbooks for Hadoop

This is very much a work in progress. It began as a means to test a hadoop proof of concept at my job. I've since bootstrapped a small hadoop/spark cluster in my home an I use these playbooks/templates to keep the cluster up to date.

v1.9/ directory contains work from 2015 when I first began experimenting with ansible and Hadoop. This is useful as a reference now.

Bootstrap a System

Manual Steps

  • Install Ubuntu 16.04 LTS (latest LTS release).
  • Make sure install has brycemcd as a sudo
  • Give brycemcd passwordless sudo:

brycemcd ALL=(ALL:ALL) NOPASSWD:ALL

useradd -m brycemcd

No Mo' Manual

  • Bootstrap the system by running: ansible-playbook -i ansible_hosts bootstrap_box.yml

Hostnames

The approach I should take is to name the physical hosts something and then name the services as cnames to the physical hosts on which they're hosted.

A migration has been started to update to this convention.

http://famous-mathematicians.org/

host host or service location description cname
lovelace host nyc01 red gigabyte brick, AMD proc, 8GB RAM, 120GB SSD lovelace.thedevranch.net
turing host beav01 red gigabyte brick, AMD proc, 8GB RAM, 120GB SSD turing.thedevranch.net
hopper host nyc01 old i7 box, 32GB RAM, 1TB slowest rusty platter drive ever hopper.thedevranch.net
leibniz host nyc01 celeron, 8GB Ram, 128 GB SSD leibniz.thedevranch.net
pascal host canada hosted Cloud at Cost: a cheap public IP address with a shoddy service pascal.thedevranch.net
lovelace service nyc01 Elasticsearch es01.thedevranch.net
spark4 (legacy - needs update!) service nyc01 Mosquitto mqtt01.thedevranch.net mqtt02.thedevranch.net
turing service beav01 Elasticsearch es02.thedevranch.net
lovelace service nyc01 postgres service psql01.tthedevranch.net
spark4 (legacy) service nyc01 postgres service psql02.tthedevranch.net
lovelace service nyc01 redis service redis01.tthedevranch.net
euclid host nyc01 old laptop i7, 8GB RAM, ~100GB SSD euclid.thedevranch.net
gauss host nyc01 old desktop i5, 16GB RAM, 500GB SSD gauss.thedevranch.net

About

I don't have an electric bill. I did the right thing and have a data center in my living room :) I use ansible to manage the infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published