Beacon to announce via avahi (zeroconf)
New in version 2016.11.0.
salt.beacons.avahi_announce.
beacon
(config)¶Broadcast values via zeroconf
If the announced values are static, it is advised to set run_once: True (do not poll) on the beacon configuration.
'servicetype': The service type to announce. 'port': The port of the service to announce. 'txt': The TXT record of the service being announced as a dict.
- Grains can be used to define TXT values using the syntax:
- grains.<grain_name>
- or:
- grains.<grain_name>[i]
where i is an integer representing the index of the grain to use. If the grain is not a list, the index is ignored.
Example Config
beacons:
avahi_announce:
run_once: True
servicetype: _demo._tcp
port: 1234
txt:
ProdName: grains.productname
SerialNo: grains.serialnumber
Comments: 'this is a test'
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2016.11.4