-
-
Save mattrobenolt/b9c95ad69c2a8880f43f 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
import salt.modules.grains | |
def awesome_service(): | |
grain = { | |
'master': salt.modules.grains.get('master'), | |
} | |
return {'awesome_service': grain} |
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
{% 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