Makes the Zabbix Template to be absent (either does not exist or delete it).

    :param name: Zabbix Template name
    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    .. code-block:: yaml

        zabbix-template-absent:
            zabbix_template.absent:
                - name: Ceph OSD

def absent(name, **kwargs):
    '''
    Makes the Zabbix Template to be absent (either does not exist or delete it).

    :param name: Zabbix Template name
    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    .. code-block:: yaml

        zabbix-template-absent:
            zabbix_template.absent:
                - name: Ceph OSD
    '''
    dry_run = __opts__['test']
    ret = {'name': name, 'result': False, 'comment': '', 'changes': {}}

    try:
        object_id = __salt__['zabbix.get_object_id_by_params']('template', {'filter': {'name': name}}, **kwargs)
    except SaltException:
        object_id = False

    if not object_id:
        ret['result'] = True
        ret['comment'] = 'Zabbix Template "{0}" does not exist.'.format(name)
    else:
        if dry_run:
            ret['result'] = True
            ret['comment'] = 'Zabbix Template "{0}" would be deleted.'.format(name)
            ret['changes'] = {name: {'old': 'Zabbix Template "{0}" exists.'.format(name),
                                     'new': 'Zabbix Template "{0}" would be deleted.'.format(name)}}
        else:
            tmpl_delete = __salt__['zabbix.run_query']('template.delete', [object_id], **kwargs)
            if tmpl_delete:
                ret['result'] = True
                ret['comment'] = 'Zabbix Template "{0}" deleted.'.format(name)
                ret['changes'] = {name: {'old': 'Zabbix Template "{0}" existed.'.format(name),
                                         'new': 'Zabbix Template "{0}" deleted.'.format(name)}}

    return ret