Skip to content

Instantly share code, notes, and snippets.

@mattrobenolt
Created May 6, 2015 02:22
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 mattrobenolt/b9c95ad69c2a8880f43f to your computer and use it in GitHub Desktop.
Save mattrobenolt/b9c95ad69c2a8880f43f to your computer and use it in GitHub Desktop.
import salt.modules.grains
def awesome_service():
grain = {
'master': salt.modules.grains.get('master'),
}
return {'awesome_service': grain}
{% set awesome_service = salt['grains.get']('awesome_service', {}) %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment