File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ key. See the hiera section below for examples.
168168* `application_options`
169169 Extra options to set in the application config file
170170
171+ * `environment_variables`
172+ Extra environment variabls to set in the application config file
173+
171174# ### Using Hiera
172175
173176Configure a django application :
Original file line number Diff line number Diff line change 2323# [*application_options*]
2424# Extra options to set in the application config file
2525#
26+ # [*environment_variables*]
27+ # Extra environment variables to set in the application config file
28+ #
2629# === Authors
2730# - Josh Smeaton <josh.smeaton@gmail.com>
2831#
2932define uwsgi::app (
30- $ensure = ' present' ,
31- $template = ' uwsgi/uwsgi_app.ini.erb' ,
32- $application_options = undef ,
33+ $ensure = ' present' ,
34+ $template = ' uwsgi/uwsgi_app.ini.erb' ,
35+ $application_options = undef ,
36+ $environment_variables = undef ,
3337 $uid ,
3438 $gid
3539) {
Original file line number Diff line number Diff line change @@ -14,5 +14,12 @@ if @application_options
1414<%
1515 end
1616end
17- -%>
1817
18+ if @environment_variables
19+ @environment_variables.sort.each do |key, value|
20+ -%>
21+ env = <%= key %> =<%= value %>
22+ <%
23+ end
24+ end
25+ -%>
You can’t perform that action at this time.
0 commit comments