Skip to content

Instantly share code, notes, and snippets.

@jalons
Last active August 29, 2015 13:57
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 jalons/2c1a576c85e2b51180f9 to your computer and use it in GitHub Desktop.
Save jalons/2c1a576c85e2b51180f9 to your computer and use it in GitHub Desktop.
runner example
import salt.runner
import os
master_opts = salt.config.master_config(
os.environ.get('SALT_MASTER_CONFIG', '/etc/salt/master'))
runner = salt.runner.RunnerClient(master_opts)
status = runner.cmd('manage.status', ['output=False'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment