projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18681: install passenger conditionally, only when required
[arvados.git]
/
tools
/
salt-install
/
config_examples
/
single_host
/
single_hostname
/
pillars
/
nginx_passenger.sls
diff --git
a/tools/salt-install/config_examples/single_host/single_hostname/pillars/nginx_passenger.sls
b/tools/salt-install/config_examples/single_host/single_hostname/pillars/nginx_passenger.sls
index bce51f29e0b33a43316d70c28c04cd544e6f028e..9db0936778d8c5cab9ec19578891785d8f9a067c 100644
(file)
--- a/
tools/salt-install/config_examples/single_host/single_hostname/pillars/nginx_passenger.sls
+++ b/
tools/salt-install/config_examples/single_host/single_hostname/pillars/nginx_passenger.sls
@@
-15,7
+15,7
@@
### NGINX
nginx:
### NGINX
nginx:
-
install_from_phusionpassenger
: true
+
__NGINX_INSTALL_SOURCE__
: true
lookup:
passenger_package: {{ passenger_pkg }}
### PASSENGER
lookup:
passenger_package: {{ passenger_pkg }}
### PASSENGER
@@
-25,11
+25,15
@@
nginx:
### SERVER
server:
config:
### 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 }}
# 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
worker_processes: 4
### SNIPPETS