Exemple #1
0
def uninstall_haproxy(args):
    """
    Remove HA Proxy from the server.
    """
    app.print_verbose("Uninstall HA Proxy")

    # Validate all command line parameters.
    if len(sys.argv) != 4:
        print_killmessage()

    haproxy_env()

    iptables.del_haproxy_chain()
    iptables.save()
    _chkconfig("haproxy", "off")
    _service("haproxy", "stop")

    x("yum -y remove haproxy")
    x("rm -rf {0}*".format(HAPROXY_CONF_DIR))
    x("rm -rf {0}/{1}.pem".format(CERT_COPY_TO_PATH, haproxy_env()))
Exemple #2
0
def uninstall_haproxy(args):
    """
    Remove HA Proxy from the server.
    """
    app.print_verbose("Uninstall HA Proxy")

    # Validate all command line parameters.
    if len(sys.argv) != 4:
        print_killmessage()

    haproxy_env()

    iptables.del_haproxy_chain()
    iptables.save()
    _chkconfig("haproxy", "off")
    _service("haproxy", "stop")

    x("yum -y remove haproxy")
    x("rm -rf {0}*".format(HAPROXY_CONF_DIR))
    x("rm -rf {0}/{1}.pem".format(CERT_COPY_TO_PATH, haproxy_env()))
Exemple #3
0
def uninstall_haproxy(args):
    """
    Remove HA Proxy from the server.
    """
    app.print_verbose("Uninstall HA Proxy")

    setup_global_vars()

    # Validate all command line parameters.
    if len(args) != 3:
        print_killmessage()

    env = haproxy_env(args)

    iptables.del_haproxy_chain()
    iptables.save()
    _chkconfig("haproxy", "off")
    _service("haproxy", "stop")

    x("yum -y remove haproxy")
    x("rm -rf {0}*".format(HAPROXY_CONF_DIR))
    x("rm -rf {0}/{1}.pem".format(cert_copy_to_path, env))
Exemple #4
0
def uninstall_haproxy(args):
    """
    Remove HA Proxy from the server.
    """
    app.print_verbose("Uninstall HA Proxy")

    setup_global_vars()

    # Validate all command line parameters.
    if len(args) != 3:
        print_killmessage()

    env = haproxy_env(args)

    iptables.del_haproxy_chain()
    iptables.save()
    _chkconfig("haproxy", "off")
    _service("haproxy", "stop")

    x("yum -y remove haproxy")
    x("rm -rf {0}*".format(HAPROXY_CONF_DIR))
    x("rm -rf {0}/{1}.pem".format(cert_copy_to_path, env))