This state is useful for sending messages to Slack during state runs.
New in version 2015.5.0.
slack-message:
slack.send_message:
- channel: '#general'
- from_name: SuperAdmin
- message: 'This state was executed successfully.'
- api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
The api key can be specified in the master or minion configuration like below:
slack:
api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
Send a message to a Slack room.
slack-message:
slack.send_message:
- channel: '#general'
- from_name: SuperAdmin
- message: 'This state was executed successfully.'
- api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
The following parameters are required:
The following parameters are optional: api_key
The api key for Slack to use for authentication, if not specified in the configuration options of master or minion.
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.1