Code Monkey home page Code Monkey logo

banana-pi-cluster-ansible-playbooks's Introduction

Ansible playbooks to manage Banana Pi clusters

This repository contains a set of Ansible playbooks that help to set up and manage a Banana Pi cluster.

How to run?

Install Ansible on a control node and define an inventory (/etc/ansible/hosts). For example:

[bpies_ips]
192.168.1.104		ansible_user=pi		hostname=bpi01
192.168.1.100		ansible_user=pi		hostname=bpi02
192.168.1.103		ansible_user=pi		hostname=bpi03
192.168.1.101		ansible_user=pi		hostname=bpi04
192.168.1.105		ansible_user=pi		hostname=bpi05
192.168.1.102		ansible_user=pi		hostname=bpi06

[bpies]
bpi[01:06].local	ansible_user=pi

[bpies_manager]
bpi01.local			ansible_user=pi

[bpies_workers]
bpi[02:06].local	ansible_user=pi

Run a playbook as follows:

ansible-playbook some-playbook.yml --ask-pass

Or:

ansible-playbook some-playbook.yml --ask-pass --ask-become-pass

Configuring

Change the target group names (the default are bpies, bpies_manager, and bpies_workers) in the .yml files before running a playbook if needed.

Available playbooks

  • configure-hosts.yml: Sets host names
  • ping.yml: Pings all the nodes
  • upgrade.yml: Updates and upgrades the nodes
  • docker-swarm: Installs Docker and creates a Docker Swarm cluster
  • rm-docker-swarm: Deletes the Docker Swarm cluster
  • reboot.yml: Reboots all the nodes
  • shutdown.yml: Shuts down all the nodes
  • temperature.yml: Prints the temperature of each machine

Deploying MariaDB

See https://github.com/alejandro-du/mariadb-docker-deployments/tree/armv7

banana-pi-cluster-ansible-playbooks's People

Contributors

alejandro-du avatar paglipay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.