salt.engines.slack module

An engine that reads messages from Slack and sends them to the Salt event bus. Alternatively Salt commands can be sent to the Salt master via Slack by setting the control parameter to True and using command prefaced with a !.

configuration:

Example configuration

engines:
    - slack:
        token: 'xoxb-xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx'
        control: True
        valid_users:
            - garethgreenaway
        valid_commands:
            - test.ping
            - cmd.run
            - list_jobs
            - list_commands
        aliases:
            list_jobs:
                cmd: jobs.list_jobs
            list_commands:
                cmd: pillar.get salt:engines:slack:valid_commands target=saltmaster tgt_type=list
configuration:Example configuration using groups
depends:

slackclient

salt.engines.slack.start(token, aliases=None, valid_users=None, valid_commands=None, control=False, trigger='!', groups=None, tag='salt/engines/slack')

Listen to Slack events and forward them to Salt