Skip to content

Instantly share code, notes, and snippets.

@timoguin
Created March 19, 2015 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timoguin/0c774dee2444a8ba44e6 to your computer and use it in GitHub Desktop.
Save timoguin/0c774dee2444a8ba44e6 to your computer and use it in GitHub Desktop.
Using Salt's caller interface in a runner
opts = salt.config.minion_config('/etc/salt/minion')
caller = salt.client.Caller(mopts=opts)
caller.sminion.functions['slack.notify'](data=data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment