Пример #1
0
def update_conf(update_type, group_name, params):
    if group_name != CONF.host_group:
        return send_alarm_email(
            u'Host %s group not match: local %s, param: %s' %
            (CONF.host_ip, CONF.host_group, group_name))
    print update_type, params
    start_update_thread(update_type, group_name=group_name, **params)
    return
Пример #2
0
def update_named(group_name, group_conf_md5):
    if group_name != CONF.host_group:
        return send_alarm_email(
            u'Host %s group not match: local %s, param: %s' %
            (CONF.host_ip, CONF.host_group, group_name))
    start_update_thread('named.conf',
                        group_conf_md5=group_conf_md5,
                        group_name=group_name)
    return
Пример #3
0
def update_conf(update_type, group_name, params):
    start_update_thread(update_type, group_name=group_name, **params)
    return
Пример #4
0
def update_conf(update_type, group_name, params):
    start_update_thread(update_type, group_name=group_name, **params)
    return
Пример #5
0
def update_named(group_name, group_conf_md5):
    if group_name != CONF.host_group:
        return send_alarm_email(
            u'Host %s group not match: local %s, param: %s' % (CONF.host_ip, CONF.host_group, group_name))
    start_update_thread('named.conf', group_conf_md5=group_conf_md5, group_name=group_name)
    return