def validate(config):
    if not isinstance(config, dict):
        return False, ('Configuration for haproxy beacon must be a dictionary.')
    if 'haproxy' not in config:
        return False, ('Configuration for haproxy beacon requires a list of backends and servers')
    return True, 'Valid beacon configuration'
Renders the login template
dataset/ETHPy150Open saltstack/salt/salt/beacons/haproxy.py/validate--crossover with--dataset/ETHPy150Open mitsuhiko/solace/solace/auth.py/AuthSystemBase.render_login_template