Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tux-o-matic/ovhipfailover
Network interface and OVH IP failover managing Puppet module
https://github.com/tux-o-matic/ovhipfailover
Last synced: about 5 hours ago
JSON representation
Network interface and OVH IP failover managing Puppet module
- Host: GitHub
- URL: https://github.com/tux-o-matic/ovhipfailover
- Owner: tux-o-matic
- License: gpl-3.0
- Created: 2014-02-21T17:46:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T14:28:20.000Z (over 7 years ago)
- Last Synced: 2024-04-19T11:04:25.420Z (7 months ago)
- Language: Puppet
- Size: 37.1 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.txt
Awesome Lists containing this project
README
# OVH IP failover #
This Puppet module is meant to ease the implementation of multiple network interfaces on a server and leverage special network solutions offered by the hosting company OVH.
#### Network interface via RedHat type network script
- General network interface, private/public.
- Virtual interfaces, included the ones offered by OVH as part of their vRack solution.#### Manage a failover IP from OVH via an init script
- Wraps underlying calls to the OVH API to control the routing destination of the IP (works between different data centers).
- Can control virtual interface state regardless of subnet which isn't possible with OCF scripts such as RedHat's rgmanager.-------
#### Example
You can manage in a single definition a virtual interface with failover capability provided by OVH.
Apply the definition on serverB by just changing the destination_fqdn to "serverA" and device name if differently mapped.
```
class { 'ovhipfailover':
ipaddress => "x.x.x.x",
device => "ethX:X",
destination_fqdn => "serverB.domain.com",
application_key => "",
application_secret => "",
consumer_key => "",
}
```To obtain a consumer key to use on the OVH API after creating an application key and secret, use the embedded Python script.
Calling the script will return a consumer key and a link to the validation url, you should choose an "illimited" time validity for your consumer key.
```
./ovh_ip_failover.py POST /auth/credential
```-------
By using the failover init script in a cluster resource manager such as rgmanager or Pacemaker, a true HA solution can be implemented across multiple OVH datacenters.
No extra parameter is needed to call the script as a standard init script resource.