Ejemplo n.º 1
0
def init(action):
    heartbeat=Heartbeat(name="heartbeat", config="/etc/ha.d")
    
    if action == "start" or action == "restart" or action == "stop":
        heartbeat.init(action)
    
    if action == "remove" or action == "install" or action == "update":
        heartbeat.yum("heartbeat",action)
Ejemplo n.º 2
0
def set_extVIP():
    heartbeat = Heartbeat(name="heartbeat", config="/etc/ha.d")
    heartbeat.yum("heartbeat", "install")

    heartbeat.externalVIP()
    heartbeat.chkconfig("on")
    if console.confirm("Do you want to start the " + heartbeat.name + "?",
                       default=False):
        heartbeat.init("start")
Ejemplo n.º 3
0
def set_extVIP():
    heartbeat=Heartbeat(name="heartbeat", config="/etc/ha.d")
    heartbeat.yum("heartbeat","install")

    heartbeat.externalVIP()
    heartbeat.chkconfig("on")
    if console.confirm("Do you want to start the "+heartbeat.name+"?", default=False):
        heartbeat.init("start")
Ejemplo n.º 4
0
def init(action):
    heartbeat = Heartbeat(name="heartbeat", config="/etc/ha.d")

    if action == "start" or action == "restart" or action == "stop":
        heartbeat.init(action)

    if action == "remove" or action == "install" or action == "update":
        heartbeat.yum("heartbeat", action)