Posts by stan92

    I finally found the solution after reading some posts on the forum :-)

    Thanks voja and H6G

    If that can help.
    First of all, (I didn't know) for using the API, I had to activate it...and generate password.

    I update my keepalived.conf like this

    For the master

    For the slave

    And my script looks like this

    1. #!/usr/bin/env bash
    2. CURL_BODY='<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:ns1=""><SOAP-ENV:Body><ns1:changeIPRouting><loginName>LOGIN_NAME</loginName><password>PASSWIRD</password><routedIP>FAILOVERIP</routedIP><routedMask>32</routedMask> <destinationVserverName>SERVER_NAME</destinationVserverName><destinationInterfaceMAC>SERVER_NAME_MAC_ADDR</destinationInterfaceMAC></ns1:changeIPRouting></SOAP-ENV:Body></SOAP-ENV:Envelope>'
    3. CURL_OUTPUT=$(curl -s -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction:" -d "$CURL_BODY" -X POST
    4. echo "Failover IP basculee " | mail -s "Basculement IP"

    I have to write a better a script especially for handling the response of the API.


    I am running a couple of VPS at netcup and try to add a failover Ip support on 2 VPS.

    Currently, all my VPS are under Ubuntu 18.04

    I installed keepalived and configured the netplan config file by adding my Failover IP on both VPS.

    I expected when I shutdown my master VPS, the Failover IP automatically switches to the the slave VPS but it's not the case.. :-(

    It only works if I assign the Failover IP using the SCP.

    Any help?

    Just get a VPS at netcup..and I can't figure out how to install Ubuntu
    From the Control Panel Server -> Media -> Images, I select Ubuntu 18.04 and get a green progress bar 2/4
    Is there a additional step? (it seems it's blocked at 2/4)