Giter VIP home page Giter VIP logo

zerotier-corosync-pacemaker's Introduction

zerotier-corosync-pacemaker

Implement Floating IP using Zerotier private controller network to be used in a High Availability Setup with Corosync, Pacemaker

Make sure that python is in your PATH which python should output the path to python binary

Create Floating IP Reassignment Resource Agent:

1- Download assign-ip Script:

sudo curl -L -o /usr/local/bin/assign-ip https://raw.githubusercontent.com/heshamyosry/zerotier-corosync-pacemaker/main/assign-ip.py

2- Make it executable:

sudo chmod +x /usr/local/bin/assign-ip

Use of the assign-ip script requires the following details:

Your Zerotier API token must be in the "zt_token" environmental variable Your Zerotier API URL must be in the "zt_controllerURL" environmental variable Your Zerotier Network ID must be in the "network_id" environmental variable Floating IP: The first argument to the script, the Floating IP that is being assigned Node ID: The second argument to the script, the Node ID that the Floating IP should be assigned to

3- Download FloatIP OCF Resource Agent:

sudo mkdir /usr/lib/ocf/resource.d/zerotier
sudo curl -o /usr/lib/ocf/resource.d/zerotier/floatip https://raw.githubusercontent.com/heshamyosry/zerotier-corosync-pacemaker/main/floatip
sudo chmod +x /usr/lib/ocf/resource.d/zerotier/floatip

4- Add FloatIP Resource:

sudo crm configure primitive FloatIP ocf:zerotier:floatip \
  params zt_token=your_personal_access_token \
  floating_ip=your_floating_ip \
  zt_controllerURL=http://controller-url \
  zt_networkID=faf3b5e040a6aab9	

If you check the status of your cluster (sudo crm status or sudo crm_mon), you should see that the FloatIP resource is defined and started on one of your nodes

zerotier-corosync-pacemaker's People

Contributors

heshamyosry avatar

Watchers

 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.