mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #24105 from cedwards/beacon_docs
Updated some beacon-specific documentation formatting
This commit is contained in:
commit
81e03e9a1c
@ -41,8 +41,7 @@ def beacon(config):
|
||||
'''
|
||||
Monitor the disk usage of the minion
|
||||
|
||||
Specify thresholds for for each load average
|
||||
and only emit a beacon if any of them are
|
||||
Specify thresholds for each disk and only emit a beacon if any of them are
|
||||
exceeded.
|
||||
|
||||
.. code-block:: yaml
|
||||
@ -51,7 +50,6 @@ def beacon(config):
|
||||
diskusage:
|
||||
- /: 63%
|
||||
- /mnt/nfs: 50%
|
||||
|
||||
'''
|
||||
ret = []
|
||||
for diskusage in config:
|
||||
|
@ -5,8 +5,8 @@ Watch files and translate the changes into salt events
|
||||
:depends: - pyinotify Python module >= 0.9.5
|
||||
|
||||
:Caution: Using generic mask options like open, access, ignored, and
|
||||
: closed_nowrite with reactors can easily cause the reactor
|
||||
: to loop on itself.
|
||||
closed_nowrite with reactors can easily cause the reactor
|
||||
to loop on itself.
|
||||
|
||||
'''
|
||||
# Import Python libs
|
||||
|
@ -66,7 +66,7 @@ def beacon(config):
|
||||
'''
|
||||
Emit the load averages of this host.
|
||||
|
||||
Specify thresholds for for each load average
|
||||
Specify thresholds for each load average
|
||||
and only emit a beacon if any of them are
|
||||
exceeded.
|
||||
|
||||
|
@ -68,7 +68,7 @@ def beacon(config):
|
||||
'''
|
||||
Emit the network statistics of this host.
|
||||
|
||||
Specify thresholds for for each network stat
|
||||
Specify thresholds for each network stat
|
||||
and only emit a beacon if any of them are
|
||||
exceeded.
|
||||
|
||||
|
@ -36,7 +36,6 @@ def beacon(config):
|
||||
salt-master: running
|
||||
mysql: stopped
|
||||
|
||||
|
||||
The config above sets up beacons to check that
|
||||
processes are running or stopped.
|
||||
'''
|
||||
|
@ -38,7 +38,6 @@ def beacon(config):
|
||||
salt-master:
|
||||
mysql:
|
||||
|
||||
|
||||
The config above sets up beacons to check for
|
||||
the salt-master and mysql services.
|
||||
|
||||
@ -67,8 +66,6 @@ def beacon(config):
|
||||
nginx:
|
||||
onchangeonly: True
|
||||
uncleanshutdown: /run/nginx.pid
|
||||
|
||||
|
||||
'''
|
||||
ret = []
|
||||
for service in config:
|
||||
|
Loading…
Reference in New Issue
Block a user