Created
February 4, 2014 04:21
-
-
Save jfrost/8798108 to your computer and use it in GitHub Desktop.
Basic Saltstack mine.get example
This file contains hidden or 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
# This jinja template will demonstrate what grains are available from other nodes via salt's mine.get function | |
{% for host, data in salt['mine.get']('*', 'grains.items', expr_form = 'glob').items() -%} | |
{% for key, value in data.items() -%} | |
{{ host }} - {{ key }}: {{ value }} | |
{% endfor -%} | |
{% endfor -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is it possible to have a simple example of mine for getting ip address for all appserver group. I try you example and i need more information
thank