def configure_approle(client, name, cidr, policies):
    """Create/update a role within vault associating the supplied policies

    :param client: Vault client
    :ptype client: hvac.Client
    :param name: Name of role
    :ptype name: str
    :param cidr: Network address of remote unit
    :ptype cidr: str
    :param policies: List of policy names
    :ptype policies: [str, str, ...]
    :returns: Id of created role
    :rtype: str"""
    client.create_role(
        name,
        token_ttl='60s',
        token_max_ttl='60s',
        policies=policies,
        bind_secret_id='true',
        bound_cidr_list=cidr)
    return client.get_role_id(name)