From d42685db09a297c6797cb8e65374a642c895c7e9 Mon Sep 17 00:00:00 2001 From: alfonsodev Date: Thu, 15 Oct 2015 15:53:32 +0200 Subject: [PATCH] Adds support for environment vars --- templates/supervisord.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/supervisord.conf.j2 b/templates/supervisord.conf.j2 index bfe59d7..a53785d 100644 --- a/templates/supervisord.conf.j2 +++ b/templates/supervisord.conf.j2 @@ -9,8 +9,13 @@ [{{ section_label }}:{{ section.name }}] {% for option, value in section.items() %} {% if option != 'name' %} +{% if option == 'environment' and value is iterable and value is not string %} +{{ option }} ={% for k,v in value.iteritems() %}{{ k }}="{{v}}", {% endfor %} + +{% else %} {{ option }} = {{ value }} {% endif %} +{% endif %} {% endfor %} {% endfor %} {% endmacro %}