summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/templates
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-17 14:48:50 -0700
committerelijah <elijah@riseup.net>2014-06-17 14:48:50 -0700
commit2a3b4ec1bc522409d4dc8d2e7750344de41acb50 (patch)
tree2f57f70c5dfca372054d956feaabd02e57e4d517 /puppet/modules/site_webapp/templates
parentf991e8a4c877cff1d274fd1cac26488f8c3fda84 (diff)
allow webapp.json to configure what engines are enabled
Diffstat (limited to 'puppet/modules/site_webapp/templates')
-rw-r--r--puppet/modules/site_webapp/templates/config.yml.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/puppet/modules/site_webapp/templates/config.yml.erb b/puppet/modules/site_webapp/templates/config.yml.erb
index 6461c5e8..8faf76f4 100644
--- a/puppet/modules/site_webapp/templates/config.yml.erb
+++ b/puppet/modules/site_webapp/templates/config.yml.erb
@@ -18,3 +18,9 @@ production:
minimum_client_version: "<%= @webapp['client_version']['min'] %>"
default_service_level: "<%= @webapp['default_service_level'] %>"
service_levels: <%= @webapp['service_levels'].to_json %>
+<%- if @webapp['engines'] && @webapp['engines'].any? -%>
+ engines:
+<%- @webapp['engines'].each do |engine| -%>
+ - <%= engine %>
+<%- end -%>
+<%- end -%> \ No newline at end of file