def METHOD_NAME(module_org, smart_proxy_location, rhel7_contenthost, target_sat):
    """Setup a broker rhel client to be used in remote execution by ip"""
    rhel7_contenthost.configure_rex(satellite=target_sat, org=module_org)
    target_sat.api_factory.update_vm_host_location(
        rhel7_contenthost, location_id=smart_proxy_location.id
    )
    yield rhel7_contenthost