Module for sending messages to Mattermost
New in version 2017.7.0.
configuration: | This module can be used by either passing an api_url and hook directly or by specifying both in a configuration profile in the salt master/minion config. For example: mattermost:
hook: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
api_url: https://example.com
|
---|
salt.modules.mattermost.
post_message
(message, channel=None, username=None, api_url=None, hook=None)¶Send a message to a Mattermost channel.
Parameters: |
|
---|---|
Returns: | Boolean if message was sent successfully. |
CLI Example:
salt '*' mattermost.post_message message='Build is done'
Generated on February 25, 2019 at 06:53:47 MST.
You are viewing docs for the previous stable release, 2017.7.8. Switch to docs for the latest stable release, 2018.3.3, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy