Skip to content

Instantly share code, notes, and snippets.

@tlk2126
Last active August 29, 2015 14:02
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 tlk2126/7f4bba239b6038a8eba4 to your computer and use it in GitHub Desktop.
Save tlk2126/7f4bba239b6038a8eba4 to your computer and use it in GitHub Desktop.
Salt Stack and Jinja importing issue
File: java/jetty/jetty-9_2_1/instance.sls:
{% set includes = [ 'java.jetty.jetty-9_2_1' ] %}
{% macro instance( INSTANCE_NAME, INSTANCE_PORT, INSTANCE_USER, INSTANCE_GROUP, INSTANCE_JAVA, INSTANCE_GIT, INSTANCE_BRANCH )%}
...
Including file:
...
{% import "java/jetty/jetty-9_2_1/instance.sls" as jetty %}
include:
- java.jdk-7u45-linux-x64
{%- for i in jetty.includes %}
- {{ i }}
{%- endfor %}
{{ jetty.instance( INSTANCE_NAME, INSTANCE_PORT, INSTANCE_USER, INSTANCE_GROUP, INSTANCE_JAVA, INSTANCE_GIT, INSTANCE_BRANCH ) }}
Now works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment