Last active
September 21, 2015 14:21
-
-
Save jlindsey/fd8ec324560f3cbb2e65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
ext_pillar: | |
- crypt: [] | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment