Skip to content

Instantly share code, notes, and snippets.

@jlindsey
Last active September 21, 2015 14:21
Show Gist options
  • Save jlindsey/fd8ec324560f3cbb2e65 to your computer and use it in GitHub Desktop.
Save jlindsey/fd8ec324560f3cbb2e65 to your computer and use it in GitHub Desktop.
'''
A very simple external pillar module for SaltStack and CryptKeeper.
Save in <path-to-your-salt-root>/ext/pillar/crypt.py
'''
try:
from crypt_keeper.ext_pillar import ext_pillar_exec
MODULE_LOADED = True
except ImportError:
MODULE_LOADED = False
def __virtual__():
return MODULE_LOADED
def ext_pillar(minion_id, pillar, *args, **kwargs):
return ext_pillar_exec(minion_id, pillar, *args, **kwargs)
# ...
ext_pillar:
- crypt: []
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment