Skip to content

Instantly share code, notes, and snippets.

@Supermathie
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 Supermathie/9901883 to your computer and use it in GitHub Desktop.
Save Supermathie/9901883 to your computer and use it in GitHub Desktop.
salt master config
ipc_mode: tcp
master: orchestrator.netdirect.ca
root_dir: c:\salt
pki_dir: /conf/pki/minion
id: win7-salt
multiprocessing: False
michael@orchestrator:/srv/salt/_grains
○ → sudo salt 'win7-salt' saltutil.sync_all
win7-salt:
----------
grains:
modules:
outputters:
renderers:
returners:
states:
michael@orchestrator:/srv/salt/_grains
○ → sudo salt 'win7-salt' grains.item ztest
win7-salt:
file_roots:
base:
- /srv/salt
file_ignore_regex:
- '/\.svn($|/)'
- '/\.git($|/)'
file_ignore_glob:
- '*.pyc'
- '*.swp'
fileserver_backend:
- roots
log_level_logfile: debug
michael@orchestrator:/srv/salt/_grains
○ → cat /srv/salt/_grains/test.py
# -*- coding: utf-8 -*-
'''
I'm testing.
'''
def testme():
return {'ztest': 'success'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment