Coder Social home page Coder Social logo

ovh_ganetihooks's Introduction

NOTE: THIS SOURCE IS OBSOLETE, NEW REPOSITORY MOVED TO https://git.nexlab.net/nextime/OVH_GanetiHooks

To use this you should separe your ip failover ripe in single ip failover /32, and route every ip to your virtual machines as singular 255.255.255.255 netmask ip.

i also use ospf to manage internal routing.

Put your external ip address as instance tags in this way:

gnt-instance add-tags ${instance_name} route:${ipaddr}/32:${INTERFACE}

for example:

gnt-instance add-tags instance01 route:81.82.83.84/32:br0

  • put all the directory and files of the tarball in /etc/ganeti
  • edit /etc/ganeti/scripts/ovh_cmd and change both $hostmap, $username and $passwd according to your use case
  • put a crontab that touch /tmp/ganeti.checkroute one time every $(choose_your_time, i use 1 hour)
  • put a touch /tmp/ganeti.checkroute in /etc/rc.local
  • put a crontab to execute every minute /etc/ganeti/cron/00-external-routes (look at example crontab)

Every time you migrate, move, failover, start, stop an instance, it should automagically update ovh failover routes.

ovh_ganetihooks's People

Contributors

nextime avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.