# nginx.ng.install | |||||
# | |||||
# Manages the main nginx server configuration file. | |||||
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | ||||
nginx_config: | nginx_config: |
# nginx.ng.install | # nginx.ng.install | ||||
# | # | ||||
# Manages installation of nginx. | # Manages installation of nginx. | ||||
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | ||||
nginx_install: | nginx_install: |
# nginx.ng.service | # nginx.ng.service | ||||
# | # | ||||
# Manages the nginx service. | # Manages the nginx service. | ||||
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | ||||
{% set service_function = {True:'running', False:'dead'}.get(nginx.service.enable) %} | {% set service_function = {True:'running', False:'dead'}.get(nginx.service.enable) %} | ||||
# nginx.ng.vhosts | # nginx.ng.vhosts | ||||
# | # | ||||
# Manages virtual hosts and their relationship to the nginx service. | # Manages virtual hosts and their relationship to the nginx service. | ||||
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | ||||
{% from 'nginx/ng/vhosts_config.sls' import vhost_states with context %} | {% from 'nginx/ng/vhosts_config.sls' import vhost_states with context %} | ||||
{% from 'nginx/ng/service.sls' import service_function with context %} | {% from 'nginx/ng/service.sls' import service_function with context %} |
# nginx.ng.vhosts_config | # nginx.ng.vhosts_config | ||||
# | # | ||||
# Manages the configuration of virtual host files. | # Manages the configuration of virtual host files. | ||||
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} | ||||
{% set vhost_states = [] %} | {% set vhost_states = [] %} | ||||