mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing inotify example in the beacons documentation.
This commit is contained in:
parent
98b151afc5
commit
7ecaca5c9b
1 changed files with 20 additions and 6 deletions
|
@ -41,8 +41,12 @@ Beacons are typically enabled by placing a ``beacons:`` top level block in
|
|||
beacons:
|
||||
inotify:
|
||||
- files:
|
||||
/etc/important_file: {}
|
||||
/opt: {}
|
||||
/etc/important_file:
|
||||
mask:
|
||||
- modify
|
||||
/opt:
|
||||
mask:
|
||||
- modify
|
||||
|
||||
The beacon system, like many others in Salt, can also be configured via the
|
||||
minion pillar, grains, or local config file.
|
||||
|
@ -62,11 +66,15 @@ Multiple copies of a particular Salt beacon can be configured by including the `
|
|||
beacons:
|
||||
watch_important_file:
|
||||
- files:
|
||||
/etc/important_file: {}
|
||||
/etc/important_file:
|
||||
mask:
|
||||
- modify
|
||||
- beacon_module: inotify
|
||||
watch_another_file:
|
||||
- files:
|
||||
/etc/another_file: {}
|
||||
/etc/another_file:
|
||||
mask:
|
||||
- modify
|
||||
- beacon_module: inotify
|
||||
|
||||
|
||||
|
@ -82,8 +90,12 @@ and 10-second intervals:
|
|||
beacons:
|
||||
inotify:
|
||||
- files:
|
||||
/etc/important_file: {}
|
||||
/opt: {}
|
||||
/etc/important_file:
|
||||
mask:
|
||||
- modify
|
||||
/opt:
|
||||
mask:
|
||||
- modify
|
||||
- interval: 5
|
||||
- disable_during_state_run: True
|
||||
load:
|
||||
|
@ -120,6 +132,8 @@ which point the normal beacon interval will resume.
|
|||
inotify:
|
||||
- files:
|
||||
/etc/important_file: {}
|
||||
mask:
|
||||
- modify
|
||||
- disable_during_state_run: True
|
||||
|
||||
.. _beacon-example:
|
||||
|
|
Loading…
Add table
Reference in a new issue