Skip to content

Instantly share code, notes, and snippets.

@dlanderson
Created February 5, 2014 22:10
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 dlanderson/c8ec06d2203cfcd58bdc to your computer and use it in GitHub Desktop.
Save dlanderson/c8ec06d2203cfcd58bdc to your computer and use it in GitHub Desktop.
base:
'foo-mdb-*':
{% set idp = grains['id'].split('-') %}
- "{{ idp[0] }}"
- "{{ '.'.join(idp[:2]) }}"
- "{{ '.'.join(idp[:3]) }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment