22.32.3. salt.beacons.inotify

Watch files and translate the changes into salt events

salt.beacons.inotify.beacon(config)

Watch the configured files

Example Config

beacons:
  inotify:
    /path/to/file/or/dir:
      mask:
        - open
        - create
        - close_write
      recurse: True
      auto_add: True
The mask can be a single option from:
access attrib close_nowrite close_write create delete delete_self excl_unlink ignored modify moved_from moved_to move_self oneshot onlydir open unmount
recurse:
Tell the beacon to recursively watch files in the directory
auto_add:
Automatically start adding files that are created in the watched directory

Docs for previous releases are available on readthedocs.org.

Latest Salt release: 2014.7.2

Previous topic

22.32.2. salt.beacons.diskusage

Next topic

22.32.4. salt.beacons.journald