Skip to content

Instantly share code, notes, and snippets.

@jfrost
Created February 4, 2014 04:21
Show Gist options
  • Save jfrost/8798108 to your computer and use it in GitHub Desktop.
Save jfrost/8798108 to your computer and use it in GitHub Desktop.
Basic Saltstack mine.get example
# 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 -%}
@truches
Copy link

truches commented Mar 30, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment