Skip to content

Instantly share code, notes, and snippets.

@daxroc
Created May 1, 2017 16:18
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 daxroc/0ddb4b8fb00572eb3711554a0b787e58 to your computer and use it in GitHub Desktop.
Save daxroc/0ddb4b8fb00572eb3711554a0b787e58 to your computer and use it in GitHub Desktop.
Saltstack - Jinja Mine.get
{%- set nodes = salt['saltutil.runner']('mine.get',
tgt='G@ec2_tags:Environment:Ether',
fun='agent_uuid',
tgt_type='compound').values()|map(attribute='myapp:agent:uuid')|list %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment