Skip to content

Instantly share code, notes, and snippets.

Created September 28, 2015 20:19
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 anonymous/f1925de87897b07e254c to your computer and use it in GitHub Desktop.
Save anonymous/f1925de87897b07e254c to your computer and use it in GitHub Desktop.
inline for dynamic lookups
{%- set team = salt['grains.get']('team') %}
{%- set client = salt['grains.get']('client') %}
{%- set ports = salt['pillar.get']('ports:lookup:' ~ team ~ '-' ~ client ~'') %}
{{ ports }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment