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