X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2459f83fafbad9a8969324ff5aef11fc47cbd142..9b3fcc8816cc0f612a743fba47500965ef8a6d82:/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls index 28cc748dac..a1d7efde6b 100644 --- a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls +++ b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls @@ -10,12 +10,12 @@ if grains.osfinger in ('CentOS Linux-7',) else '/usr/lib/nginx/modules/ngx_http_passenger_module.so' %} {%- set passenger_ruby = '/usr/local/rvm/rubies/ruby-2.7.2/bin/ruby' - if grains.osfinger in ('CentOS Linux-7', 'Ubuntu-18.04',) else + if grains.osfinger in ('CentOS Linux-7', 'Ubuntu-18.04', 'Debian-10') else '/usr/bin/ruby' %} ### NGINX nginx: - install_from_phusionpassenger: true + __NGINX_INSTALL_SOURCE__: true lookup: passenger_package: {{ passenger_pkg }} ### PASSENGER @@ -25,11 +25,15 @@ nginx: ### SERVER server: config: + # As we now differentiate where passenger is required or not, we need to + # load this module conditionally, so we add this conditional just to use + # the same pillar file + {% if "install_from_phusionpassenger" == "____NGINX_INSTALL_SOURCE__" %} # This is required to get the passenger module loaded # In Debian it can be done with this # include: 'modules-enabled/*.conf' load_module: {{ passenger_mod }} - + {% endif %} worker_processes: 4 ### SNIPPETS