Sunday, May 10, 2020

Ansible In Raspberry Cluster 1st part

The intention to write this blog is document the process to create a cluster using 2 Raspberry Pi 3B  and learn the use of different DevOps tools. The first of this tools is Ansible, an orchestrator tool to manage more than one system in an easy way.

Of course, i'm writing a blog and don't write this process in a notebook, because I want to share this process with the people who have an interest on technology and this topics.

So, lets star from the beginning:

For this project I'll use:

  • 2 Raspberry Pi model 3B.
  • 2 16 GB SD cards. 
  • 3 USB Micro B cables.
  • 1 multi USB charger multi port.
  • 1 communication Switch.
  • 3 UTP Cat 5 cables.
  • 1 laptop.



The Raspberry Pies

For those who don't know this project, a Raspberry Pi is a small computer as the same size as than a credit card. To work, this computer needs an USB power supply.  like an cellphone charger, or  preferably an official Raspberry Pi power supply.

I'm going to use 2 raspberry Pi (I hoppe increase the number of raspberries in the future). The model of Raspberries that I'm going to use is 3B. Now a days for May 2020 is not the most recent model, but are the computers that I have. 

Raspberries use SD cards as "hard drive", in this case I'm going to use 16 GB SD Cards, because are the cards that I have within reach.


The communication infrastructure

My communication infrastructure consists in a cheap switch and enough UTP cables co interconnect the raspberries, the laptop and share the Internet access.

The laptop and the virtual environment

By last, I'm going to use my laptop as a command centre and to host an virtual laboratory where I can test the configurations before past them to the cluster. In this laptop I'm going to store the base image for the raspberries pies "Hard drve" to avoid configure each computer by hand 


For the next entrance, I'll write about the process to install Raspbian as the operating system for the raspberries, how to generate an image in the laptop to avoid generate this memory for each raspberries and leave reddy the cluster to work with it.

If yo have a question about this, leave a message.







No comments:

Post a Comment

A Raspberry Pi firewall: Package filter - 05 Understanding the whats and whys to manage a service

  To recap. Until now we create:  Some rules in our chains INPUT and OUTPUT to allow some traffic to specific ports A backup of our rules an...