Skip to content

Instantly share code, notes, and snippets.

@gravyboat
Created July 11, 2014 20: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 gravyboat/154390b0f40bba4e1b69 to your computer and use it in GitHub Desktop.
Save gravyboat/154390b0f40bba4e1b69 to your computer and use it in GitHub Desktop.
Rendering out jinja files with a pillar.
import yaml
import jinja2
print jinja2.Template(open('PATH/files/FILE.jinja').read()).render(pillar=yaml.load(open('pillar.example')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment