def METHOD_NAME(name, save=False, **kwargs):
    """
    Ensure beacon is configured with the included beacon data.
    name
        The name of the beacon to ensure is configured.
    save
        True/False, if True the beacons.conf file be updated too. Default is False.
    Example:
    .. code-block:: yaml
        ps_beacon:
          beacon.present:
            - name: ps
            - save: True
            - enable: False
            - services:
                salt-master: running
                apache2: stopped
    """
    ret = {"name": name, "result": True, "changes": {}, "comment": []}
    current_beacons = __salt__["beacons.list"](return_yaml=False, **kwargs)
    beacon_data = [{k: v} for k, v in kwargs.items()]
    if name in current_beacons:
        if beacon_data == current_beacons[name]:
            ret["comment"].append("Job {} in correct state".format(name))
        else:
            if __opts__.get("test"):
                kwargs["test"] = True
                result = __salt__["beacons.modify"](name, beacon_data, **kwargs)
                ret["comment"].append(result["comment"])
                ret["changes"] = result["changes"]
            else:
                result = __salt__["beacons.modify"](name, beacon_data, **kwargs)
                if not result["result"]:
                    ret["result"] = result["result"]
                    ret["comment"] = result["comment"]
                    return ret
                else:
                    if "changes" in result:
                        ret["comment"].append("Modifying {} in beacons".format(name))
                        ret["changes"] = result["changes"]
                    else:
                        ret["comment"].append(result["comment"])
    else:
        if __opts__.get("test"):
            kwargs["test"] = True
            result = __salt__["beacons.add"](name, beacon_data, **kwargs)
            ret["comment"].append(result["comment"])
        else:
            result = __salt__["beacons.add"](name, beacon_data, **kwargs)
            if not result["result"]:
                ret["result"] = result["result"]
                ret["comment"] = result["comment"]
                return ret
            else:
                ret["comment"].append("Adding {} to beacons".format(name))
    if save:
        if __opts__.get("test"):
            ret["comment"].append("Beacon {} would be saved".format(name))
        else:
            __salt__["beacons.save"]()
            ret["comment"].append("Beacon {} saved".format(name))
    ret["comment"] = "\n".join(ret["comment"])
    return ret