How is a masterless salt-minion supposed to match tags created with beacons

27 views
Skip to first unread message

Anthony Hawkins

unread,
Sep 16, 2022, 9:43:09 AM9/16/22
to Salt-users
I have an interesting setup and can't seem to find any docs/posts on how to set this up.

What I'm running
- Salt 3004
- masterless salt-minion as a daemon

What I have configured for my beacons
beacons:
  important_file:
    - directories:
        /etc/important_file:
          mask:
            - create
            - modify
            - delete
            - move
    - beacon_module: watchdog

Triggering the Beacon
I can modify the file and it does trigger an event I can see it when I run 
salt-call --local state.event pretty=True

__beacons_return    {
    "_stamp": "2022-09-16T02:51:20.551554",
    "beacons": [
        {
            "beacon_name": "watchdog",
            "data": {
                "change": "modified",
                "id": "my-host",
                "path": "/etc/important_file"
            },
            "tag": "salt/beacon/my-host/important_file/watchdog"
        },
        {
            "beacon_name": "watchdog",
            "data": {
                "change": "modified",
                "id": "my-host",
                "path": "/etc"
            },
            "tag": "salt/beacon/my-host/important_file/watchdog"
        }
    ]
}

What's giving me trouble
I can't figure what this __beacons_return tag is anywhere or how to actually have a masterless salt-minion react to beacons generated from itself.  I expect to see a tag called

            "tag": "salt/beacon/my-host/important_file/watchdog" 

which then can be picked up by the reactor on the minion to execute some state etc.

Any help would be appreciated, thanks.

jeremy....@gmail.com

unread,
Sep 17, 2022, 2:28:31 PM9/17/22
to Salt-users
Reply all
Reply to author
Forward
0 new messages