Module for sending messages to Pushover (https://www.pushover.net)
2016.3.0 新版功能.
configuration: | This module can be used by either passing an api key and version directly or by specifying both in a configuration profile in the salt master/minion config. For example: pushover:
token: abAHuZyCLtdH8P4zhmFZmgUHUsv1ei8
|
---|
salt.modules.pushover_notify.
post_message
(user=None, device=None, message=None, title=None, priority=None, expire=None, retry=None, sound=None, api_version=1, token=None)¶Send a message to a Pushover user or group.
参数: |
|
---|---|
返回: | Boolean if message was sent successfully. |
CLI Example:
salt '*' pushover.post_message user='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' title='Message from Salt' message='Build is done'
salt '*' pushover.post_message user='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' title='Message from Salt' message='Build is done' priority='2' expire='720' retry='5'