Skip to content

Instantly share code, notes, and snippets.

@iggy
Created March 20, 2015 18:54
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 iggy/c785f73e055bb8ead30e to your computer and use it in GitHub Desktop.
Save iggy/c785f73e055bb8ead30e to your computer and use it in GitHub Desktop.
mine example
mine_functions:
#test.ping: []
network.interfaces: []
network.get_hostname: []
disk.usage: []
grains.item:
- tags
- roles
{% set dbhost = salt['mine.get']('G@tags:db and G@tags:primary', 'network.interfaces', 'compound') %}
{{ salt['mine.get']('tags:mon', 'network.get_hostname', 'grain').values() or ['localhost']|first }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment