Skip to content

I made this as a simple example of ☁️ 💻 (cloud computing). This is the python code to manage a 4-cores cluster made with 🍓Raspberry Pi B+, a simple switch and cables. Its made with 🐍Python 3 and Fabric. Every Raspberry is running Raspbian and its SSH port is open and tested.

License

Notifications You must be signed in to change notification settings

Quantium/fabricSample

Repository files navigation

Fabric Sample

I made this as a simple example of ☁️ 💻 (cloud computing). This is the python code to manage a 4-cores cluster made with 🍓Raspberry Pi B+, a simple switch and cables. Its made with 🐍Python 3 and Fabric. Every Raspberry is running Raspbian and its SSH port is open and tested.

Raspberry 4 Cores Cluster

Getting Started

You don't need the raspberries, any linux computer with ssh access through your local network will work fine for most of the examples. But, think again! Build the cluster is so much fun.

It's better if you have some previous knowledge about:

  • Python 3 🐍
  • Linux Shell 🐧
  • Computer Hardware 💻
  • Raspberry Pi 🍓

Just Fork or clone this project and keep reading.

Prerequisites

If you don't have it already, install Python 3 I'm using Python 3.6.5+

One you have Python 3 installed use pip to install fabric, in the console type:

pip install fabric

You will need at least 4 linux machines, you could use virtual ones if you want. This computers will need to have the SSH port open and accessible to your network from your computer

Installing

Just clone or fork this repository and run the samples with python from a terminal.

python3 ls.py
ifconfig wlan0 down

crontab -e

@reboot sudo ifdown wlan0

Built With

  • Python - The programming language
  • Fabric - The library for streamlining
  • Raspbian - The Operative System for the cluster

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • Thank you to everybody in the Python team.
  • Thank you to the people who program and maintain fabric
  • Thank you very much to the guys of Raspberry PI
  • The Dog Bone Case was bought here

About

I made this as a simple example of ☁️ 💻 (cloud computing). This is the python code to manage a 4-cores cluster made with 🍓Raspberry Pi B+, a simple switch and cables. Its made with 🐍Python 3 and Fabric. Every Raspberry is running Raspbian and its SSH port is open and tested.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages